From 44c0e4e11a9a5a7cb087bf42f0f6c47abc2b0aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 27 Nov 2013 22:54:11 +0200 Subject: CBMEM console: increase temporary buffer size for non-dynamic CBMEM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/4295 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/lib/cbmem_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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 -- cgit v1.2.3