diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/hardwaremain.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index 3d1b8f2a58..295edcdd69 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -434,6 +434,12 @@ static void boot_state_schedule_static_entries(void) 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); + /* * CBMEM needs to be recovered in the EARLY_CBMEM_INIT case because * timestamps, APCI, etc rely on the cbmem infrastructure being @@ -448,11 +454,6 @@ void main(void) timestamp_add_now(TS_START_RAMSTAGE); post_code(POST_ENTRY_RAMSTAGE); - /* console_init() MUST PRECEDE ALL printk()! */ - console_init(); - - post_code(POST_CONSOLE_READY); - /* Handoff sleep type from romstage. */ #if CONFIG_HAVE_ACPI_RESUME acpi_is_wakeup(); |