[SeaBIOS] [PATCH 3/3] Add qemu detection to csm

Gerd Hoffmann kraxel at redhat.com
Tue Sep 3 14:37:43 CEST 2013


Add a qemu_detect() call to csm initialization,
so PF_QEMU gets set when running on qemu.

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 src/csm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/csm.c b/src/csm.c
index 2021701..d927842 100644
--- a/src/csm.c
+++ b/src/csm.c
@@ -16,6 +16,7 @@
 #include "acpi.h"
 #include "boot.h"
 #include "smbios.h"
+#include "paravirt.h"
 #include "pic.h"
 
 struct rsdp_descriptor csm_rsdp VARFSEG __aligned(16);
@@ -49,6 +50,7 @@ csm_return(struct bregs *regs)
 static void
 csm_maininit(struct bregs *regs)
 {
+    qemu_detect();
     interface_init();
     pci_probe_devices();
 
-- 
1.8.3.1




More information about the SeaBIOS mailing list