diff options
author | Asami Doi <d0iasm.pub@gmail.com> | 2019-08-22 11:15:12 +0900 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-08-23 08:17:43 +0000 |
commit | 38a128611157229aa8b4c0eb9a844aa178ae142a (patch) | |
tree | f0cc3916ec1ea5db3ce5bca10ba0d70c0c78a4d3 /src/lib/hardwaremain.c | |
parent | eeb8e74944488ffbb7aa9a16fb28cc84beb6c353 (diff) |
lib: hardwaremain: Call exception_init() as soon as possible
Call exception_init() before calling cbmem_initialize() because
ARMv8 on QEMU uses an exception handler to detect a ram size.
Signed-off-by: Asami Doi <d0iasm.pub@gmail.com>
Change-Id: If010234a6576414e7e174c075b599a4aa4c19eab
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35022
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/lib/hardwaremain.c')
-rw-r--r-- | src/lib/hardwaremain.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index 3c6fb931d8..a4c154e7a8 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -451,9 +451,10 @@ void main(void) /* console_init() MUST PRECEDE ALL printk()! Additionally, ensure * it is the very first thing done in ramstage.*/ console_init(); - post_code(POST_CONSOLE_READY); + exception_init(); + /* * CBMEM needs to be recovered because timestamps, ACPI, etc rely on * the cbmem infrastructure being around. Explicitly recover it. @@ -470,8 +471,6 @@ void main(void) #if CONFIG(HAVE_ACPI_RESUME) acpi_is_wakeup(); #endif - - exception_init(); threads_initialize(); /* Schedule the static boot state entries. */ |