summaryrefslogtreecommitdiffstats
path: root/src/include/cpu
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-04-07 21:50:16 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-05-28 05:09:56 +0000
commit1684b0aa6752af770328c48b3adafa5e6cb386fe (patch)
tree9f6c797f14c9aade5e075efcb8e8a1979dd3b21c /src/include/cpu
parentd7c371619a287a3a74e23fc3fcff4793a12deba6 (diff)
downloadcoreboot-1684b0aa6752af770328c48b3adafa5e6cb386fe.tar.gz
coreboot-1684b0aa6752af770328c48b3adafa5e6cb386fe.tar.bz2
coreboot-1684b0aa6752af770328c48b3adafa5e6cb386fe.zip
cpu/x86/mp_init.c: Drop 'real' vs 'used' save state
Now that the save state size is handled properly inside the smm_loader there is no reason to make that distinction in the mp_init code anymore. Change-Id: Ia0002a33b6d0f792d8d78cf625fd7e830e3e50fc Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63479 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/x86/smm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index 03b9c39903f3..b6d778b4c96b 100644
--- a/src/include/cpu/x86/smm.h
+++ b/src/include/cpu/x86/smm.h
@@ -127,7 +127,7 @@ static inline bool smm_points_to_smram(const void *ptr, const size_t len)
/* The smm_loader_params structure provides direction to the SMM loader:
* - num_cpus - number of concurrent cpus in handler needing stack
* optional for setting up relocation handler.
- * - per_cpu_save_state_size - the SMM save state size per cpu
+ * - cpu_save_state_size - the SMM save state size per cpu
* - num_concurrent_save_states - number of concurrent cpus needing save state
* space
* - handler - optional handler to call. Only used during SMM relocation setup.
@@ -139,8 +139,7 @@ static inline bool smm_points_to_smram(const void *ptr, const size_t len)
struct smm_loader_params {
size_t num_cpus;
- size_t real_cpu_save_state_size;
- size_t per_cpu_save_state_size;
+ size_t cpu_save_state_size;
size_t num_concurrent_save_states;
smm_handler_t handler;