Asami Doi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
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.
Change-Id: If010234a6576414e7e174c075b599a4aa4c19eab --- M src/lib/hardwaremain.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/35022/1
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index 2881162..d46cdc0 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -454,6 +454,8 @@ * it is the very first thing done in ramstage.*/ console_init();
+ exception_init(); + post_code(POST_CONSOLE_READY);
/* @@ -472,8 +474,6 @@ #if CONFIG(HAVE_ACPI_RESUME) acpi_is_wakeup(); #endif - - exception_init(); threads_initialize();
/* Schedule the static boot state entries. */
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35022/1/src/lib/hardwaremain.c File src/lib/hardwaremain.c:
https://review.coreboot.org/c/coreboot/+/35022/1/src/lib/hardwaremain.c@457 PS1, Line 457: exception_init(); Place this after the post_code(POST_CONSOLE_READY)? In case things go wrong with exception init at least the post code would serve as a indicator.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35022
to look at the new patch set (#2).
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
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 --- M src/lib/hardwaremain.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/35022/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35022
to look at the new patch set (#3).
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
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 --- M src/lib/hardwaremain.c 1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/35022/3
Asami Doi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/35022/1/src/lib/hardwaremain.c File src/lib/hardwaremain.c:
https://review.coreboot.org/c/coreboot/+/35022/1/src/lib/hardwaremain.c@457 PS1, Line 457: exception_init();
Place this after the post_code(POST_CONSOLE_READY)? In case things go wrong with exception init at l […]
Yes, it makes sense. I moved it after the post_code.
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
Patch Set 3: Code-Review+2
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
Patch Set 3: Code-Review+2
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
Patch Set 3: Code-Review+2
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/35022 )
Change subject: lib: hardwaremain: Call exception_init() as soon as possible ......................................................................
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 --- M src/lib/hardwaremain.c 1 file changed, 2 insertions(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved Julius Werner: Looks good to me, approved Raul Rangel: Looks good to me, approved
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index 3c6fb93..a4c154e 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -451,9 +451,10 @@ /* 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 @@ #if CONFIG(HAVE_ACPI_RESUME) acpi_is_wakeup(); #endif - - exception_init(); threads_initialize();
/* Schedule the static boot state entries. */