summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-19 23:29:07 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-07-03 09:49:26 +0200
commitdb8693bde7ad2cc2f6b32bb9654685c1ddb502b2 (patch)
treea64c78d5990c2d2a1969e081433fbecb13ef6d56 /src/lib
parentef40ca57ebd4de746eafaa1e5a1cae035337f285 (diff)
ACPI: Recover type of wakeup in acpi_is_wakeup()
Update acpi_slp_type early in ramstage. Change-Id: I30ec2680d28b880171217e896f48606f8691b099 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6142 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.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 d90e0f6b94..277d9b72ba 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -464,6 +464,11 @@ void main(void)
post_code(POST_CONSOLE_BOOT_MSG);
+ /* Handoff sleep type from romstage. */
+#if CONFIG_HAVE_ACPI_RESUME
+ acpi_is_wakeup();
+#endif
+
threads_initialize();
/* Schedule the static boot state entries. */