diff mbox

[4/5] Set irq0override based on emu_ver.

Message ID 20090803133316.956684516@sgi.com
State Superseded
Headers show

Commit Message

Jes Sorensen Aug. 3, 2009, 1:32 p.m. UTC
Enable irq0override when we are running on QEMU. All recent versionsof
QEMU rely on irq0override, not just for KVM.

Signed-off-by: Jes Sorensen <jes@sgi.com>
---
 src/mptable.c |    4 ----
 src/post.c    |    2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)
diff mbox

Patch

Index: seabios/src/mptable.c
===================================================================
--- seabios.orig/src/mptable.c
+++ seabios/src/mptable.c
@@ -9,11 +9,7 @@ 
 #include "config.h" // CONFIG_*
 #include "mptable.h" // MPTABLE_SIGNATURE
 
-#if CONFIG_KVM
-int irq0override = 1;
-#else
 int irq0override = 0;
-#endif
 
 void
 mptable_init(void)
Index: seabios/src/post.c
===================================================================
--- seabios.orig/src/post.c
+++ seabios/src/post.c
@@ -171,6 +171,8 @@  post()
     qemu_cfg_port_probe();
     if (qemu_cfg_port)
         emu_ver = qemu_cfg_get_emulator_rev();
+    if ((emu_ver & 0xff00) == EMU_QEMU)
+        irq0override = 1;
 
     pic_setup();
     timer_setup();