summaryrefslogtreecommitdiffstats
path: root/src/include/cpu/x86/smm.h
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-02-15 18:55:40 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-19 11:32:59 +0000
commit64d9e8568172402d8078c2c80ba994da16f4745b (patch)
treeceeec69b2dddf5a9b60dc9eeb35a70ebabe1a06e /src/include/cpu/x86/smm.h
parentdfff5c2d193066adff8e0bee9ed4525b622eb7c8 (diff)
downloadcoreboot-64d9e8568172402d8078c2c80ba994da16f4745b.tar.gz
coreboot-64d9e8568172402d8078c2c80ba994da16f4745b.tar.bz2
coreboot-64d9e8568172402d8078c2c80ba994da16f4745b.zip
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>
Diffstat (limited to 'src/include/cpu/x86/smm.h')
-rw-r--r--src/include/cpu/x86/smm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index cb9aeac813a6..b100bf800bb8 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 {