Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59694 )
Change subject: cpu/x86/mp_init.c: Fix building without an SMI_HANDLER ......................................................................
cpu/x86/mp_init.c: Fix building without an SMI_HANDLER
Tested on Qemu/i440fx. The follow-up commit adds a config file to buildtest it.
Change-Id: Ieeaa85691e4c4516bb51df0e87c4ecaa940810f0 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/cpu/x86/mp_init.c 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/59694/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index c99732f..c9de560 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -1076,7 +1076,9 @@ ops->get_smm_info(&state->perm_smbase, &state->perm_smsize, &state->smm_real_save_state_size);
- state->smm_save_state_size = MAX(state->smm_real_save_state_size, smm_stub_size()); + if (CONFIG(HAVE_SMI_HANDLER)) + state->smm_save_state_size = MAX(state->smm_real_save_state_size, + smm_stub_size());
/* * Make sure there is enough room for the SMM descriptor