cpu/x86/mp_init.c: Fix building with no smihandler

The build fails because smm_stub_size() tries to find a symbol that
won't be present.

Change-Id: I73fee3cf26c0e37cca03299c6730f7b4f1ef6685
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54754
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Arthur Heymans 2021-05-21 09:58:46 +02:00 committed by Felix Held
parent 4a0dee21ae
commit 29c7622d08
1 changed files with 3 additions and 0 deletions

View File

@ -1072,6 +1072,9 @@ static void fill_mp_state(struct mp_state *state, const struct mp_ops *ops)
if (ops->get_cpu_count != NULL)
state->cpu_count = ops->get_cpu_count();
if (!is_smm_enabled())
return;
if (ops->get_smm_info != NULL)
ops->get_smm_info(&state->perm_smbase, &state->perm_smsize,
&state->smm_real_save_state_size);