cpu/x86/smm_module_hander: Set up a save state map
commit64d9e8568172402d8078c2c80ba994da16f4745b
authorArthur Heymans <arthur@aheymans.xyz>
Mon, 15 Feb 2021 17:55:40 +0000 (15 18:55 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 19 Mar 2021 11:32:59 +0000 (19 11:32 +0000)
treeceeec69b2dddf5a9b60dc9eeb35a70ebabe1a06e
parentdfff5c2d193066adff8e0bee9ed4525b622eb7c8
cpu/x86/smm_module_hander: Set up a save state map

With the smm_module_loaderv2 the save state map is not linear so copy
a map from ramstage into the smihandler.

TESTED on QEMU q35: Both SMMLOADER V1 and V2 handle save states properly.

Change-Id: I31c57b59559ad4ee98500d83969424e5345881ee
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50769
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/cpu/x86/smm/smm_module_handler.c
src/cpu/x86/smm/smm_module_loader.c
src/cpu/x86/smm/smm_module_loaderv2.c
src/include/cpu/x86/smm.h