summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-17 13:45:16 +0300
committerHung-Te Lin <hungte@chromium.org>2020-12-25 02:29:14 +0000
commite0183d6540b8e8a8281f4317b881dfbc57f12bc4 (patch)
treec3399bb67dc9489c105f1757a3ffc7dfeca27bd4 /src/lib
parent61bc2191c3d3a66f33688ee498985a588fc8ec82 (diff)
downloadcoreboot-e0183d6540b8e8a8281f4317b881dfbc57f12bc4.tar.xz
ACPI: Allocate GNVS early in ramstage
We need this to happen prior to SMM module loader. If there is some debugging output it's better they do not appear in the middle of CPU bringup. Change-Id: I45b4b5c0c5bf8bee258a465d1e364bfe98190e44 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48697 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hardwaremain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 173ee97192..d040a0ef93 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -7,6 +7,7 @@
#include <adainit.h>
#include <acpi/acpi.h>
+#include <acpi/acpi_gnvs.h>
#include <arch/exception.h>
#include <bootstate.h>
#include <console/console.h>
@@ -447,6 +448,10 @@ void main(void)
acpi_is_wakeup_s3();
threads_initialize();
+ /* Initialise GNVS early. */
+ if (CONFIG(HAVE_ACPI_TABLES))
+ gnvs_get_or_create();
+
/* Schedule the static boot state entries. */
boot_state_schedule_static_entries();