aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cbmem_console.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-12-19 08:20:45 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-01-27 22:50:14 +0100
commit2fb6b40ed0d4c4d169d4b909ad784e1841b50242 (patch)
tree6d34fc2c9fd525ba86100881515087cc6dee0d6e /src/lib/cbmem_console.c
parent02aebb67b394a9cf81eade4a3952fce3a19c974c (diff)
downloadcoreboot-2fb6b40ed0d4c4d169d4b909ad784e1841b50242.tar.gz
coreboot-2fb6b40ed0d4c4d169d4b909ad784e1841b50242.tar.xz
coreboot-2fb6b40ed0d4c4d169d4b909ad784e1841b50242.zip
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)
Diffstat (limited to 'src/lib/cbmem_console.c')
-rw-r--r--src/lib/cbmem_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c
index 6783b30da..0c2722c04 100644
--- a/src/lib/cbmem_console.c
+++ b/src/lib/cbmem_console.c
@@ -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