arch/x86: Pass GNVS as parameter to SMM module
Change-Id: I9d7417462830443f9c96273d2cc326cbcc3b17dd Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48698 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
c5a3a4a602
commit
8c2cc68b1a
@@ -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();
|
||||
|
Reference in New Issue
Block a user