summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-02-15 15:06:50 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-18 08:14:32 +0000
commit791097834b4803c8b64f9ad2196212e527f0fd88 (patch)
treed50393357b8607312c4649f9f67f5acba1b5f80d /src/cpu
parented4be45d58ea482c1c8172bc4b2fa1c6af75c75f (diff)
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50763 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/mp_init.c2
1 files changed, 1 insertions, 1 deletions
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. */