From 64d9e8568172402d8078c2c80ba994da16f4745b Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 15 Feb 2021 18:55:40 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50769 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/include/cpu/x86/smm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index cb9aeac813..b100bf800b 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -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 { -- cgit v1.2.3