From 1dfa46ecfd6c0bcbfb10d6e3c051806f5e62c2ff Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 15 Feb 2021 16:19:33 +0100 Subject: cpu/x86/mp_init.c: Copy the stub parameter start32_offset into ramstage Keep a copy of start32_offset into ramstage to avoid needing to pass arguments, calling from assembly. Doing this in C code is better than assembly. Change-Id: Iac04358e377026f45293bbee03e30d792df407fd Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/50765 Reviewed-by: Eugene Myers Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/include/cpu/x86/smm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index badcb394c7..25ce144cbb 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -60,8 +60,6 @@ struct smm_runtime { u32 save_state_size; u32 num_cpus; u32 gnvs_ptr; - /* STM's 32bit entry into SMI handler */ - u32 start32_offset; } __packed; struct smm_module_params { @@ -88,6 +86,8 @@ struct smm_stub_params { * contiguous like the 1:1 mapping it is up to the caller of the stub * loader to adjust this mapping. */ u8 apic_id_to_cpu[CONFIG_MAX_CPUS]; + /* STM's 32bit entry into SMI handler */ + u32 start32_offset; struct smm_runtime runtime; } __packed; -- cgit v1.2.3