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>
This commit is contained in:
Arthur Heymans 2021-02-15 15:06:50 +01:00 committed by Patrick Georgi
parent ed4be45d58
commit 791097834b
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ static void asmlinkage smm_do_relocation(void *arg)
} }
#else #else
perm_smbase = mp_state.perm_smbase; perm_smbase = mp_state.perm_smbase;
perm_smbase -= cpu * runtime->save_state_size; perm_smbase -= cpu * mp_state.smm_save_state_size;
#endif #endif
/* Setup code checks this callback for validity. */ /* Setup code checks this callback for validity. */