diff options
-rw-r--r-- | src/cpu/x86/smm/smihandler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/smm/smihandler.c b/src/cpu/x86/smm/smihandler.c index 0b262afaa9..2a5f1bb363 100644 --- a/src/cpu/x86/smm/smihandler.c +++ b/src/cpu/x86/smm/smihandler.c @@ -8,6 +8,7 @@ #include <cpu/amd/amd64_save_state.h> #include <cpu/intel/em64t100_save_state.h> #include <cpu/intel/em64t101_save_state.h> +#include <cpu/x86/lapic_def.h> #include <cpu/x86/legacy_save_state.h> #if CONFIG(SPI_FLASH_SMM) @@ -49,10 +50,9 @@ static void smi_release_lock(void) ); } -#define LAPIC_ID 0xfee00020 static __always_inline unsigned long nodeid(void) { - return (*((volatile unsigned long *)(LAPIC_ID)) >> 24); + return (*((volatile unsigned long *)(LAPIC_DEFAULT_BASE + LAPIC_ID)) >> 24); } void io_trap_handler(int smif) |