diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-12-06 13:27:09 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-12-12 14:56:51 +0100 |
commit | b3d4aae240325b01b69a9f88ee76b7abfd6a418c (patch) | |
tree | 84f09b7a4b26dd30deafc6164bb8039c1627de95 /src/fw/paravirt.c | |
parent | feb0284e3737631a19e3f7a1c1097b8c6b40fb2f (diff) | |
download | seabios-b3d4aae240325b01b69a9f88ee76b7abfd6a418c.tar.gz |
run qemu_cfg_e820 only for CONFIG_QEMU=y
Otherwise we'll clobber the e820 table from coreboot.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/fw/paravirt.c')
-rw-r--r-- | src/fw/paravirt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index b84196ad..00e327d1 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) { |