summaryrefslogtreecommitdiffstats
path: root/src/include/cpu/x86/smm.h
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-02-15 19:39:01 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-19 11:33:28 +0000
commit478f3d8f5e5b5e506ca4c9644bfa97ad389cef7f (patch)
treeff42d0163c59c0f45bd297b362dc86fef4d80555 /src/include/cpu/x86/smm.h
parentad0116c0327f575f0af184a2f4861848a49a0e2a (diff)
downloadcoreboot-478f3d8f5e5b5e506ca4c9644bfa97ad389cef7f.tar.gz
coreboot-478f3d8f5e5b5e506ca4c9644bfa97ad389cef7f.tar.bz2
coreboot-478f3d8f5e5b5e506ca4c9644bfa97ad389cef7f.zip
cpu/x86/mp_init: Allow stub sizes larger than the save state size
The permanent handler module argument 'save_state_size' now holds the meaning of the real save state size which is then substracted from the CPUs save state 'top' to get the save state base. TESTED with qemu Q35 on x86_64 where the stub size exceeds the AMD64 save state size. Change-Id: I55d7611a17b6d0a39aee1c56318539232a9bb781 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50770 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/include/cpu/x86/smm.h')
-rw-r--r--src/include/cpu/x86/smm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index 3375f4a1444b..4f3db291ac7e 100644
--- a/src/include/cpu/x86/smm.h
+++ b/src/include/cpu/x86/smm.h
@@ -138,6 +138,7 @@ struct smm_loader_params {
size_t per_cpu_stack_size;
size_t num_concurrent_stacks;
+ size_t real_cpu_save_state_size;
size_t per_cpu_save_state_size;
size_t num_concurrent_save_states;