aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/smm/smm_module_handler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/x86/smm/smm_module_handler.c b/src/cpu/x86/smm/smm_module_handler.c
index 3ba5684f35..8532d59b9d 100644
--- a/src/cpu/x86/smm/smm_module_handler.c
+++ b/src/cpu/x86/smm/smm_module_handler.c
@@ -134,8 +134,10 @@ asmlinkage void smm_handler_start(void *arg)
/* Make sure to set the global runtime. It's OK to race as the value
* will be the same across CPUs as well as multiple SMIs. */
- if (smm_runtime == NULL)
+ if (smm_runtime == NULL) {
smm_runtime = runtime;
+ gnvs = (void *)(uintptr_t)smm_runtime->gnvs_ptr;
+ }
if (cpu >= CONFIG_MAX_CPUS) {
console_init();