aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86/mp_init.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-05-21 09:58:46 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-12-03 15:53:53 +0000
commit29c7622d08c95a48e10785cc1bc5cffc6874fe94 (patch)
treeb862ea9e1cc28c6ea01f04dbc5cd1d948b9df2c0 /src/cpu/x86/mp_init.c
parent4a0dee21ae97ea10eadae3bf5286ea6938b8eb89 (diff)
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>
Diffstat (limited to 'src/cpu/x86/mp_init.c')
-rw-r--r--src/cpu/x86/mp_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index 46cb585d55..709e7a2218 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -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);