mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17794 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de> Change-Id: I7514c498f40f2d93a4e83a232ef4665f5c21f062 Reviewed-on: https://chromium-review.googlesource.com/422236 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
cf40e95de8
commit
cedbd5ce60
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <arch/acpi.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <fallback.h>
|
||||
#include <timestamp.h>
|
||||
#include <program_loading.h>
|
||||
#include <romstage_handoff.h>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue