cpu/x86/smm_module_hander: Set up a save state map
With the smm_module_loaderv2 the save state map is not linear so copy a map from ramstage into the smihandler. TESTED on QEMU q35: Both SMMLOADER V1 and V2 handle save states properly. Change-Id: I31c57b59559ad4ee98500d83969424e5345881ee Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50769 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
dfff5c2d19
commit
64d9e85681
@@ -60,6 +60,7 @@ struct smm_runtime {
|
||||
u32 save_state_size;
|
||||
u32 num_cpus;
|
||||
u32 gnvs_ptr;
|
||||
uintptr_t save_state_top[CONFIG_MAX_CPUS];
|
||||
} __packed;
|
||||
|
||||
struct smm_module_params {
|
||||
|
Reference in New Issue
Block a user