diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2020-11-01 12:37:40 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-11-16 12:07:41 +0000 |
commit | fd8619e665416fe1d7b7b4c1e69a7ceb1ea58ef8 (patch) | |
tree | 28176ae51c0199037c0319c51766a51d7a38b1b9 /3rdparty/chromeec | |
parent | bf13ef0738a7898b4877491a0aaa95aabf4700b5 (diff) |
cpu/x86/smm: Check that the stub size is < save state size
If the stub size would be larger than the save state size, the stagger
points would overlap with the stub.
The check is placed in the stub placement code. The stub placement
code is called twice. Once for the initial SMM relocatation and for
the permanent handler in TSEG. So the check is done twice, which is
not really needed.
Change-Id: I253e1a7112cd8f7496cb1a826311f4dd5ccfc73a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47069
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to '3rdparty/chromeec')
0 files changed, 0 insertions, 0 deletions