From 791097834b4803c8b64f9ad2196212e527f0fd88 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 15 Feb 2021 15:06:50 +0100 Subject: cpu/x86/mp_init.c: Calculate perm_smbase from ramstage data The data needed to compute the permanent smbase for a core, when relocating, is present in the ramstage data which the stub located at DEFAULT_SMBASE (0x30000) calls back to. There is no need to fetch this from via the stub params. Change-Id: I3894c39ec8cae3ecc46b469a0fdddcad2a8f26c4 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/50763 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/cpu/x86/mp_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu') diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index 0693bc712a..e70c142cc5 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -738,7 +738,7 @@ static void asmlinkage smm_do_relocation(void *arg) } #else perm_smbase = mp_state.perm_smbase; - perm_smbase -= cpu * runtime->save_state_size; + perm_smbase -= cpu * mp_state.smm_save_state_size; #endif /* Setup code checks this callback for validity. */ -- cgit v1.2.3