CBMEM: Support DYNAMIC_CBMEM with LATE_CBMEM_INIT
We can now create CBMEM with dynamic allocation even if CBMEM location is resolved late in ramstage. Change-Id: I8529ccbcd4a0e567ebe0a46232ac5d16476e81a8 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7861 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -58,7 +58,7 @@ extern struct cbmem_console preram_cbmem_console;
|
||||
* during the ROM stage, once CBMEM becomes available at RAM stage.
|
||||
*/
|
||||
|
||||
#if CONFIG_DYNAMIC_CBMEM
|
||||
#if IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)
|
||||
#define STATIC_CONSOLE_SIZE 1024
|
||||
#else
|
||||
#define STATIC_CONSOLE_SIZE CONFIG_CONSOLE_CBMEM_BUFFER_SIZE
|
||||
|
Reference in New Issue
Block a user