diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2013-11-27 22:54:11 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2013-11-30 20:51:26 +0100 |
commit | 44c0e4e11a9a5a7cb087bf42f0f6c47abc2b0aa5 (patch) | |
tree | f03aedc049b8ec5f7f41609ff9f98c2283c8d710 /src/lib/cbmem_console.c | |
parent | 19d06b2f891a47bdaa02a5b8e60cef85313aae83 (diff) |
CBMEM console: increase temporary buffer size for non-dynamic CBMEM
Make temporary buffer allocation equal with the allocation in CBMEM and
let copy_console_buffer() handle possible truncation.
When not using dynamic CBMEM the CBMEM area is initialized late in the
ramstage and should be able to hold almost as many characters as the
CBMEM can hold. We have seen 40000 was not always enough with logging
level set to spew, new default size is 0x10000.
Change-Id: If4b143fdf807e28b6766b8b99db5216b767948d5
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4295
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martin.roth@se-eng.com>
Diffstat (limited to 'src/lib/cbmem_console.c')
-rw-r--r-- | src/lib/cbmem_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c index fec11f7564..83d44e3a13 100644 --- a/src/lib/cbmem_console.c +++ b/src/lib/cbmem_console.c @@ -57,7 +57,7 @@ static struct cbmem_console car_cbmem_console CAR_CBMEM; #if CONFIG_DYNAMIC_CBMEM #define STATIC_CONSOLE_SIZE 1024 #else -#define STATIC_CONSOLE_SIZE 40000 +#define STATIC_CONSOLE_SIZE CONFIG_CONSOLE_CBMEM_BUFFER_SIZE #endif static u8 static_console[STATIC_CONSOLE_SIZE]; #endif |