From cedbd5ce60e4fda1bc7c2ba6b485f5664371f4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 11 Dec 2016 13:31:17 +0200 Subject: [PATCH] UPSTREAM: ACPI S3: Signal successful boot Just before jumping to OS wakeup vector do the same tasks to signal coreboot completion that would be done before entry to payload on normal boot path. BUG=None BRANCH=None TEST=None Signed-off-by: Kysti Mlkki Reviewed-on: https://review.coreboot.org/17794 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Change-Id: I7514c498f40f2d93a4e83a232ef4665f5c21f062 Reviewed-on: https://chromium-review.googlesource.com/422236 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/arch/x86/acpi_s3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c index 0fc1914bef..0001885db2 100644 --- a/src/arch/x86/acpi_s3.c +++ b/src/arch/x86/acpi_s3.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -230,6 +231,8 @@ static void acpi_jump_to_wakeup(void *vector) /* Copy wakeup trampoline in place. */ memcpy((void *)WAKEUP_BASE, &__wakeup, __wakeup_size); + set_boot_successful(); + timestamp_add_now(TS_ACPI_WAKE_JUMP); acpi_do_wakeup((uintptr_t)vector, source, target, size);