From: Ian Campbell Subject: Re: [PATCH v2 3/3] firmware: Introduce CONFIG_ROMBIOS and CONFIG_SEABIOS options Date: Fri, 10 Feb 2012 09:16:55 +0000 Message-ID: <1328865415.6133.250.camel@zakaz.uk.xensource.com> References: <49af4f8a096e6d47f5221fc8ec22d8882b5a3faa.1328837585.git.julian.pidancet@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49af4f8a096e6d47f5221fc8ec22d8882b5a3faa.1328837585.git.julian.pidancet@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Julian Pidancet Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-02-10 at 01:53 +0000, Julian Pidancet wrote: > @@ -470,6 +472,7 @@ int main(void) > bios->create_pir_tables(); > } > > +#ifdef ENABLE_ROMBIOS > if ( bios->load_roms ) Can we make bios->load_roms a function pointer instead of a bool. It can be NULL for SeaBIOS and contain this block on ROMBIOS? Then all this code (and pci_load_option_roms) could be moved to rombios.c. > { > switch ( virtual_vga ) > @@ -506,6 +509,7 @@ int main(void) > option_rom_sz = pci_load_option_roms(bios->optionrom_end, > option_rom_phys_addr); > } > +#endif > > acpi_enabled = !strncmp(xenstore_read("platform/acpi", "1"), "1", 1); >