]> xenbits.xensource.com Git - seabios.git/commitdiff
Add qemu detection to csm
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Sep 2013 09:52:13 +0000 (11:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Sep 2013 09:48:59 +0000 (11:48 +0200)
Add a qemu_preinit() call to csm initialization,
so PF_QEMU gets set when running on qemu.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/csm.c

index cd16641b3284611176b78b4ad3040f6e0914edc6..dfb0d12f28a9d3f6fe0563945f98ab85ee3b55d0 100644 (file)
@@ -17,6 +17,7 @@
 #include "std/bda.h" // struct bios_data_area_s
 #include "std/optionrom.h" // struct rom_header
 #include "util.h" // copy_smbios
+#include "paravirt.h" // qemu_preinit
 
 #define UINT8 u8
 #define UINT16 u16
@@ -69,6 +70,8 @@ csm_maininit(struct bregs *regs)
 static void
 handle_csm_0000(struct bregs *regs)
 {
+    qemu_preinit();
+
     dprintf(3, "Legacy16InitializeYourself table %04x:%04x\n", regs->es,
             regs->bx);