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>
This commit is contained in:
Kyösti Mälkki 2013-11-27 22:54:11 +02:00
parent 19d06b2f89
commit 44c0e4e11a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static struct cbmem_console car_cbmem_console CAR_CBMEM;
#if CONFIG_DYNAMIC_CBMEM #if CONFIG_DYNAMIC_CBMEM
#define STATIC_CONSOLE_SIZE 1024 #define STATIC_CONSOLE_SIZE 1024
#else #else
#define STATIC_CONSOLE_SIZE 40000 #define STATIC_CONSOLE_SIZE CONFIG_CONSOLE_CBMEM_BUFFER_SIZE
#endif #endif
static u8 static_console[STATIC_CONSOLE_SIZE]; static u8 static_console[STATIC_CONSOLE_SIZE];
#endif #endif