summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot/cbmem.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-01-04 09:42:02 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-01-06 17:34:44 +0100
commit4dba06a827af7962c9441a5f6a08f8f9b95224e0 (patch)
tree760ab591f4306a6779c7e54345fa8dd2db8385d5 /src/arch/x86/boot/cbmem.c
parent5b353002a96f1cad9be96b14781f391c6d3faeff (diff)
CBMEM: Fix allocation for static CBMEM
CBMEM console buffer size is adjustable in menuconfig, but this would not correctly adjust the overall allocation made for CBMEM. HIGH_MEMORY_SIZE is aligned to 64kB and definitions are moved down in the header file as HIGH_MEMORY_SIZE is not used with DYNAMIC_CBMEM. Try to continue boot even if CBMEM cannot be created. This error would only occur during development of new ports anyways and more log output is better. Change-Id: I4ee2df601b12ab6532ffcae8897775ecaa2fc05f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4621 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch/x86/boot/cbmem.c')
-rw-r--r--src/arch/x86/boot/cbmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/boot/cbmem.c b/src/arch/x86/boot/cbmem.c
index 01520187f9..c2d9a2ed87 100644
--- a/src/arch/x86/boot/cbmem.c
+++ b/src/arch/x86/boot/cbmem.c
@@ -15,6 +15,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
*/
+#include <stdlib.h>
#include <console/console.h>
#include <cbmem.h>
#include <arch/acpi.h>