Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / src / include / cpu / x86 / smm.h
index 49ee2be514a58c98326a92e5a2518b5b80b7286c..60959f52f69219885d119cc5b3ba36a6034417fb 100644 (file)
@@ -24,6 +24,9 @@
 #ifndef CPU_X86_SMM_H
 #define CPU_X86_SMM_H
 
+/* used only by C programs so far */
+#define SMM_BASE 0xa0000
+
 #include <types.h>
 typedef struct {
        u16     es_selector;
@@ -277,6 +280,8 @@ void __attribute__((weak)) southbridge_smi_handler(unsigned int node, smm_state_
 
 void __attribute__((weak)) mainboard_smi_gpi(u16 gpi_sts);
 int __attribute__((weak)) mainboard_apm_cnt(u8 data);
+#if !CONFIG_SMM_TSEG
 void smi_release_lock(void);
+#endif
 
 #endif