summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-08 13:48:57 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-09 12:48:01 +0000
commit4d372c7353727e9ffce9ec4e6b2de3cd6ab8e320 (patch)
treed9c08bdb71fb489866cd8018f298c0381e812023 /src/cpu/x86
parent328d42f2d8e3b3eb9a451285a8d3e2f4c9fde029 (diff)
downloadcoreboot-4d372c7353727e9ffce9ec4e6b2de3cd6ab8e320.tar.xz
cpu/x86: Declare SMM_ASEG
This is really an inverse of SMM_TSEG to flag platforms that should potentially move away from ASEG implementation. Change-Id: I3b9007c55c75a59a9e6acc0a0e701300f7d21f87 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34134 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/Kconfig9
-rw-r--r--src/cpu/x86/smm/smmrelocate.S7
2 files changed, 12 insertions, 4 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index 99a70750af..d230a57e3f 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -88,6 +88,15 @@ config LOGICAL_CPUS
bool
default y
+config HAVE_SMI_HANDLER
+ bool
+ default n
+ depends on (SMM_ASEG || SMM_TSEG)
+
+config SMM_ASEG
+ bool
+ default n
+
config SMM_TSEG
bool
default n
diff --git a/src/cpu/x86/smm/smmrelocate.S b/src/cpu/x86/smm/smmrelocate.S
index c282904de9..e23b082aa7 100644
--- a/src/cpu/x86/smm/smmrelocate.S
+++ b/src/cpu/x86/smm/smmrelocate.S
@@ -32,10 +32,9 @@
// ADDR32() macro
#include <arch/registers.h>
-#if CONFIG(SMM_TSEG)
-#error "Don't use this file with TSEG."
-
-#endif /* CONFIG_SMM_TSEG */
+#if !CONFIG(SMM_ASEG)
+#error "Only use this file with ASEG."
+#endif /* CONFIG_SMM_ASEG */
#define LAPIC_ID 0xfee00020