CBMEM: Move cbmemc_reinit()
This replaces need for separate cbmemc_reinit() calls made via CAR_MIGRATE() and in ramstage. Change-Id: If7b4d855c75df58b173f26ef3c90a4a7563166d3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7859 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
/* FIXME: Remove after CBMEM_INIT_HOOKS. */
|
||||
#include <cpu/x86/gdt.h>
|
||||
#include <console/cbmem_console.h>
|
||||
|
||||
#if !CONFIG_DYNAMIC_CBMEM
|
||||
void get_cbmem_table(uint64_t *base, uint64_t *size)
|
||||
@@ -75,6 +76,9 @@ void *cbmem_top(void)
|
||||
void cbmem_run_init_hooks(void)
|
||||
{
|
||||
#if !defined(__PRE_RAM__)
|
||||
/* Relocate CBMEM console. */
|
||||
cbmemc_reinit();
|
||||
|
||||
move_gdt();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user