aboutsummaryrefslogtreecommitdiffstats
path: root/src/fw/dev-piix.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-05-15 13:22:28 +0200
committerKevin O'Connor <kevin@koconnor.net>2014-06-04 11:06:58 -0400
commit457ba42878bd9f704e5a6c1c7bc7fcced686fe4e (patch)
treef8df779b20a326fcf9cbaa81a4e8702098607405 /src/fw/dev-piix.h
parent40d03128531e06b35a3836f9346790003692540e (diff)
downloadseabios-457ba42878bd9f704e5a6c1c7bc7fcced686fe4e.tar.gz
smm: complete SMM setup
SMI generation requires two bits to be set in PIIX4, one for APMC interrupts specifically and a general one. For Q35 it is the same, plus it is a good thing to lock SMIs after enabling them. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'src/fw/dev-piix.h')
-rw-r--r--src/fw/dev-piix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fw/dev-piix.h b/src/fw/dev-piix.h
index c6dce036..c389f171 100644
--- a/src/fw/dev-piix.h
+++ b/src/fw/dev-piix.h
@@ -17,6 +17,8 @@
/* ICH9 PM I/O registers */
#define PIIX_GPE0_BLK 0xafe0
#define PIIX_GPE0_BLK_LEN 4
+#define PIIX_PMIO_GLBCTL 0x28
+#define PIIX_PMIO_GLBCTL_SMI_EN 1
/* FADT ACPI_ENABLE/ACPI_DISABLE */
#define PIIX_ACPI_ENABLE 0xf1