summaryrefslogtreecommitdiff
path: root/src/lib/hardwaremain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hardwaremain.c')
-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();