cpu/x86/smm/smihandler: use lapicid()
Replace nodeid() function in cpu/x86/smm/smihandler.c with calling lapicid() from include/cpu/x86/lapic.h. TEST=Timeless build for lenovo/g505s which includes this file in the build results in identical firmware image. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I336ca9888e24e4d6f10a81cc4f3760c9d7c8f4bc Reviewed-on: https://review.coreboot.org/c/coreboot/+/67777 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
parent
a0405b84ca
commit
4e04776a1b
|
@ -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.h>
|
||||
#include <cpu/x86/lapic_def.h>
|
||||
#include <cpu/x86/legacy_save_state.h>
|
||||
|
||||
|
@ -50,11 +51,6 @@ static void smi_release_lock(void)
|
|||
);
|
||||
}
|
||||
|
||||
static __always_inline unsigned long nodeid(void)
|
||||
{
|
||||
return (*((volatile unsigned long *)(LAPIC_DEFAULT_BASE + LAPIC_ID)) >> 24);
|
||||
}
|
||||
|
||||
void io_trap_handler(int smif)
|
||||
{
|
||||
/* If a handler function handled a given IO trap, it
|
||||
|
@ -164,7 +160,7 @@ void smi_handler(void)
|
|||
|
||||
smi_backup_pci_address();
|
||||
|
||||
node = nodeid();
|
||||
node = lapicid();
|
||||
|
||||
console_init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue