Increase CBMEM to accommodate larger console.
authorVadim Bendebury <vbendeb@chromium.org>
Tue, 4 Oct 2011 17:44:16 +0000 (10:44 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 29 Mar 2012 18:13:43 +0000 (20:13 +0200)
This change adds 128K to the memory amount set aside for CBMEM in
case the CBMEM console is enabled (to keep the CBMEM 128K byte
aligned). The console buffer size is being set to 64K, which is
enough to accommodate the most verbose coreboot console and
u-boot console.

Change-Id: If583013dfb210de5028d69577675095c6fe2f3ab
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/725
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
src/include/cbmem.h

index c3f10efee11f9699a8b01b2cd5a4a7a0d0c88962..e86415b31bc21f6050f87522cc49632d9487720b 100644 (file)
 #define _CBMEM_H_
 
 /* Reserve 128k for ACPI and other tables */
+#if CONFIG_CONSOLE_CBMEM
+#define HIGH_MEMORY_DEF_SIZE   ( 256 * 1024 )
+#else
 #define HIGH_MEMORY_DEF_SIZE   ( 128 * 1024 )
+#endif
+
 #ifndef __PRE_RAM__
 extern uint64_t high_tables_base, high_tables_size;
 #endif