From 1684b0aa6752af770328c48b3adafa5e6cb386fe Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 7 Apr 2022 21:50:16 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63479 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- src/include/cpu/x86/smm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/include/cpu') diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 03b9c39903..b6d778b4c9 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; -- cgit v1.2.3