diff options
Diffstat (limited to 'src/lib/cbmem_console.c')
-rw-r--r-- | src/lib/cbmem_console.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c index 783f336b9c..ad3b99bbba 100644 --- a/src/lib/cbmem_console.c +++ b/src/lib/cbmem_console.c @@ -167,12 +167,10 @@ static void cbmemc_reinit(int is_recovery) copy_console_buffer(previous_cons_p); } -/* Run the romstage hook early so that the console region is one of the earliest created, and +/* Run this hook early so that the console region is one of the earliest created, and therefore more likely to stay in the same place even across different boot modes where some other regions may sometimes not get created (e.g. RW_MCACHE in vboot recovery mode). */ -ROMSTAGE_CBMEM_INIT_HOOK_EARLY(cbmemc_reinit) -RAMSTAGE_CBMEM_INIT_HOOK(cbmemc_reinit) -POSTCAR_CBMEM_INIT_HOOK(cbmemc_reinit) +CBMEM_READY_HOOK_EARLY(cbmemc_reinit); #if CONFIG(CONSOLE_CBMEM_DUMP_TO_UART) void cbmem_dump_console_to_uart(void) |