From 71bc9f0eba4fce8ffa2b0b90e388f3596ffb6a5d Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 24 May 2022 08:46:09 +0200 Subject: cpu/x86/mp_init.c: Generate a C header to get start32 offset In the current design the relocatable parameters are used to know the offset of the 32bit startpoint. This requires back and forward interaction between the stub, the loader and the mp init code. This makes the code hard to read. This is static information known at buildtime, so a better way to deal with this is to generate a header that contains this offset. Change-Id: Ic01badd2af11a6e1dbc27c8e928916fedf104b5b Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/64625 Reviewed-by: Patrick Rudolph Reviewed-by: Maximilian Brune Tested-by: build bot (Jenkins) --- src/include/cpu/x86/smm.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include') diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index d28197232a..efafa53c6b 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -107,8 +107,6 @@ struct smm_stub_params { * contiguous like the 1:1 mapping it is up to the caller of the stub * loader to adjust this mapping. */ u16 apic_id_to_cpu[CONFIG_MAX_CPUS]; - /* STM's 32bit entry into SMI handler */ - u32 start32_offset; } __packed; /* smm_handler_t is called with arg of smm_module_params pointer. */ -- cgit v1.2.3