diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-06-14 20:55:54 +0200 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2011-06-15 23:11:44 +0200 |
commit | bfe8e5186ea9916634d31182ec0437f6175e7724 (patch) | |
tree | c47d6e948425e4bbe0d9c38cc2a1eb1a954070a9 /src/cpu/x86/smm | |
parent | b629d14becd78c634ad412df726d964ed5d51214 (diff) | |
download | coreboot-bfe8e5186ea9916634d31182ec0437f6175e7724.tar.xz |
SMM: don't overwrite SMM memory on resume
Overwriting the SMM Area on resume leaves us with
all variables cleared out, i.e., the GNVS pointer
is no longer available, which makes SMIF function
calls impossible.
Change-Id: I08ab4ffd41df0922d63c017822de1f89a3ff254d
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/34
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/cpu/x86/smm')
-rw-r--r-- | src/cpu/x86/smm/smihandler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/smm/smihandler.c b/src/cpu/x86/smm/smihandler.c index bdaedf8dbc..d44a3eae1b 100644 --- a/src/cpu/x86/smm/smihandler.c +++ b/src/cpu/x86/smm/smihandler.c @@ -46,7 +46,7 @@ static int smi_obtain_lock(void) return (ret == SMI_UNLOCKED); } -static void smi_release_lock(void) +void smi_release_lock(void) { asm volatile ( "movb %1, %%al\n" |