From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXdsW-0000oT-OO for qemu-devel@nongnu.org; Thu, 12 Feb 2009 10:53:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXdsV-0000nc-7W for qemu-devel@nongnu.org; Thu, 12 Feb 2009 10:53:28 -0500 Received: from [199.232.76.173] (port=40750 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXdsV-0000nW-2s for qemu-devel@nongnu.org; Thu, 12 Feb 2009 10:53:27 -0500 Received: from mail-bw0-f157.google.com ([209.85.218.157]:56814) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXdsU-0004in-MU for qemu-devel@nongnu.org; Thu, 12 Feb 2009 10:53:26 -0500 Received: by bwz1 with SMTP id 1so1183826bwz.10 for ; Thu, 12 Feb 2009 07:53:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20090212081025.29410.94176.stgit@dhcp-1-237.tlv.redhat.com> References: <20090212081025.29410.94176.stgit@dhcp-1-237.tlv.redhat.com> Date: Thu, 12 Feb 2009 17:53:24 +0200 Message-ID: Subject: Re: [Qemu-devel] [PATCH] Allow additions of ACPI tables from command line From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 2/12/09, Gleb Natapov wrote: > This is needed to dynamically add SLIC tables with Windows > activation keys. > +--- a/bios/rombios32.c > ++++ b/bios/rombios32.c > +@@ -455,6 +455,8 @@ unsigned long bios_table_end_addr; > + #define QEMU_CFG_SIGNATURE 0x00 > + #define QEMU_CFG_ID 0x01 > + #define QEMU_CFG_UUID 0x02 > ++#define FW_CFG_ARCH_LOCAL 0x8000 > ++#define FW_CFG_ACPI_TABLES (FW_CFG_ARCH_LOCAL + 0) Why don't you just copy the file hw/fw_cfg.h as is? It's designed to be included even from assembler files.