Received: from eggs.gnu.org ([208.118.235.92]:45307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR54N-0008KP-AA for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR54K-0002rZ-Sa for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR54K-0002qq-J9 for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:40 -0400 From: Eduardo Habkost Date: Wed, 24 Oct 2012 15:49:50 -0200 Message-Id: <1351101001-14589-17-git-send-email-ehabkost@redhat.com> In-Reply-To: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> References: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 16/27] pc: pass PCInitArgs struct to pc_bios_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paolo Bonzini The argument will be used later, when enabling compatibility mode for the APIC ID generation code. Signed-off-by: Eduardo Habkost --- hw/pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index c38d8b2..0e01003 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -570,7 +570,7 @@ int e820_add_entry(uint64_t address, uint64_t length, uint32_t type) return index; } -static FWCfgState *pc_bios_init(void) +static FWCfgState *pc_bios_init(PCInitArgs *args) { FWCfgState *fw_cfg; uint8_t *smbios_table; @@ -918,7 +918,7 @@ void *pc_memory_init(PCInitArgs *args) option_rom_mr, 1); - fw_cfg = pc_bios_init(); + fw_cfg = pc_bios_init(args); rom_set_fw(fw_cfg); if (linux_boot) { -- 1.7.11.7