cpu/x86/smm: Drop the V1 smmloader
Change-Id: I536a104428ae86e82977f2510b9e76715398b442 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51187 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
e6c3523b1b
commit
88407bcd9d
@@ -757,15 +757,10 @@ static void asmlinkage smm_do_relocation(void *arg)
|
||||
* the location of the new SMBASE. If using SMM modules then this
|
||||
* calculation needs to match that of the module loader.
|
||||
*/
|
||||
if (CONFIG(X86_SMM_LOADER_VERSION2)) {
|
||||
perm_smbase = smm_get_cpu_smbase(cpu);
|
||||
if (!perm_smbase) {
|
||||
printk(BIOS_ERR, "%s: bad SMBASE for CPU %d\n", __func__, cpu);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
perm_smbase = mp_state.perm_smbase;
|
||||
perm_smbase -= cpu * mp_state.smm_save_state_size;
|
||||
perm_smbase = smm_get_cpu_smbase(cpu);
|
||||
if (!perm_smbase) {
|
||||
printk(BIOS_ERR, "%s: bad SMBASE for CPU %d\n", __func__, cpu);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Setup code checks this callback for validity. */
|
||||
|
Reference in New Issue
Block a user