coreboot-kgpe-d16/src/include/cpu/x86
Arthur Heymans 3967cf931b cpu/x86/smm: Add a common save state handling
Currently coreboot has limited use for the SMM save state. Typically
the only thing needed is to get or set a few registers and to know
which CPU triggered the SMI (typically via an IO write). Abstracting
away different SMM save states would allow to put some SMM
functionality like the SMMSTORE entry in common places.

To save place platforms can select different SMM save sate ops that
should be implemented. For instance AMD platforms don't need Intel SMM
save state handling.

Some platforms can encounter CPUs with different save states, which
the code then handles at runtime by comparing the SMM save state
revision which is located at the same offset for all SMM save state
types.

Change-Id: I4a31d05c09065543424a9010ac434dde0dfb5836
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44323
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-11-09 10:20:07 +00:00
..
bist.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
cache.h arch/x86/exit_car.S: Make sure _cbmem_top_ptr hits dram 2020-08-17 06:22:41 +00:00
cr.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gdt.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
lapic.h cpu/x86/lapic: rename virtual wire mode initialization function 2020-10-31 18:01:38 +00:00
lapic_def.h
legacy_save_state.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mp.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00
msr.h cpu/intel/common: rework code previously moved to common cpu code 2020-10-24 09:53:26 +00:00
mtrr.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
name.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pae.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
post_code.h src/include: Drop unneeded empty lines 2020-09-14 07:09:41 +00:00
save_state.h cpu/x86/smm: Add a common save state handling 2020-11-09 10:20:07 +00:00
smi_deprecated.h cpu/x86/smm/smmhandler.c: Get revision using C code 2020-09-29 05:59:37 +00:00
smm.h cpu/x86/smm.h: Add function to return the SMM save state revision 2020-09-21 08:11:54 +00:00
tsc.h include/cpu/x86/tsc: Fix rdtsc on x86_64 2020-09-28 09:36:00 +00:00