From: Ian Campbell Date: Thu, 28 Jun 2012 10:08:33 +0000 (+0100) Subject: SMM: Disable use of SMM when running under Xen X-Git-Tag: rel-1.7.1~16 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=12c991e1da182a0e6e2028f130ded512102c8842;p=seabios.git SMM: Disable use of SMM when running under Xen Xen does not support SMM mode. Signed-off-by: Ian Campbell --- diff --git a/src/smm.c b/src/smm.c index 72e5e88..d0d1476 100644 --- a/src/smm.c +++ b/src/smm.c @@ -10,6 +10,7 @@ #include "config.h" // CONFIG_* #include "ioport.h" // outb #include "pci_ids.h" // PCI_VENDOR_ID_INTEL +#include "xen.h" // usingXen ASM32FLAT( ".global smm_relocation_start\n" @@ -151,6 +152,8 @@ smm_init(void) return; if (!CONFIG_USE_SMM) return; + if (usingXen()) + return; dprintf(3, "init smm\n"); pci_find_init_device(smm_init_tbl, NULL);