cpu/x86/smm: Pass GNVS with smm_module_loader v2
Change-Id: I9971069803a7cd1b9be0ac0cfa410b6e1fdc3eeb Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
91946c5b13
commit
84935f7de5
|
@ -1,5 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <acpi/acpi_gnvs.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <rmodule.h>
|
||||
|
@ -447,6 +448,7 @@ static int smm_module_setup_stub(void *smbase, size_t smm_size,
|
|||
stub_params->runtime.smm_size = smm_size;
|
||||
stub_params->runtime.save_state_size = params->per_cpu_save_state_size;
|
||||
stub_params->runtime.num_cpus = params->num_concurrent_stacks;
|
||||
stub_params->runtime.gnvs_ptr = (uintptr_t)acpi_get_gnvs();
|
||||
|
||||
printk(BIOS_DEBUG, "%s: stack_end = 0x%lx\n",
|
||||
__func__, stub_params->stack_top - total_stack_size);
|
||||
|
|
Loading…
Reference in New Issue