From: Gerd Hoffmann Date: Fri, 6 Dec 2013 12:27:09 +0000 (+0100) Subject: run qemu_cfg_e820 only for CONFIG_QEMU=y X-Git-Tag: rel-1.7.4~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b3d4aae240325b01b69a9f88ee76b7abfd6a418c;p=seabios.git run qemu_cfg_e820 only for CONFIG_QEMU=y Otherwise we'll clobber the e820 table from coreboot. Signed-off-by: Gerd Hoffmann --- diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index b84196a..00e327d 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -253,6 +253,9 @@ qemu_cfg_e820(void) struct e820_reservation *table; int i, size; + if (!CONFIG_QEMU) + return; + // "etc/e820" has both ram and reservations table = romfile_loadfile("etc/e820", &size); if (table) {