coreboot/src/cpu/x86
Eugene D. Myers d205cf7e4e cpu/x86/smm: Fix get_save_state calculation
When the SMI transfer monitor (STM) is configured, get_save_state
returns an incorrect pointer to the cpu save state because the size
(rounded up to 0x100) of the processor System Management Mode (SMM)
descriptor needs to be subtracted out in this case.

This patch addresses the issue identified in CB:76601, which means
that SMMSTOREv2 now works with the STM.

Thanks to Jeremy Compostella for suggesting this version of the patch.

Resolves: https://ticket.coreboot.org/issues/511

Change-Id: I0233c6d13bdffb3853845ac6ef25c066deaab747
Signed-off-by: Eugene D. Myers <edmyers@cyberpackventures.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78889
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2023-11-10 15:27:13 +00:00
..
64bit cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
cache Allow to build romstage sources inside the bootblock 2023-11-09 13:20:18 +00:00
lapic arch to drivers/intel: Fix misspellings & capitalization issues 2023-09-08 00:53:57 +00:00
mtrr cpu/x86/mtrr/debug: rename variables in display_variable_mtrr 2023-09-20 18:18:59 +00:00
name
pae cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
smm cpu/x86/smm: Fix get_save_state calculation 2023-11-10 15:27:13 +00:00
tsc cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
backup_default_smm.c
copy_data_section.inc x86: Add .data section support for pre-memory stages 2023-09-14 21:02:07 +00:00
early_reset.S
entry16.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
entry32.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
Kconfig cpu/x86: Add some notes about XAPIC/X2APIC 2023-07-06 13:54:20 +00:00
Kconfig.debug_cpu
Makefile.inc cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
mp_init.c cpu/x86/smm: Fix get_save_state calculation 2023-11-10 15:27:13 +00:00
reset16.S
sipi_vector.S
smi_trigger.c
smm_start32_offset.h.template cpu/x86/mp_init.c: Generate a C header to get start32 offset 2023-04-06 15:19:00 +00:00
topology.c cpu/x86/topology: Add code to fill in topology on struct path 2023-04-06 15:27:23 +00:00