[SeaBIOS] [PATCH 3/3] Add qemu detection to csm
Gerd Hoffmann
kraxel at redhat.com
Mon Sep 16 12:36:30 CEST 2013
Add a qemu_preinit() call to csm initialization,
so PF_QEMU gets set when running on qemu.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
src/fw/csm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/fw/csm.c b/src/fw/csm.c
index cd16641..dfb0d12 100644
--- a/src/fw/csm.c
+++ b/src/fw/csm.c
@@ -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);
--
1.8.3.1
More information about the SeaBIOS
mailing list