summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbmem.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c
index 6b0cbc8948..6cdf7721c9 100644
--- a/src/lib/cbmem.c
+++ b/src/lib/cbmem.c
@@ -104,13 +104,12 @@ static void cbmem_init(void)
cbmem_locate_table(&baseaddr, &size);
cbmem_trace_location(baseaddr, size, __FUNCTION__);
- cbmem_toc = (struct cbmem_entry *)(unsigned long)baseaddr;
-
- if (size < (64 * 1024)) {
- printk(BIOS_DEBUG, "Increase CBMEM size!\n");
- for (;;) ;
+ if (!(baseaddr && size)) {
+ printk(BIOS_CRIT, "Unable to set location for CBMEM.\n");
+ return;
}
+ cbmem_toc = (struct cbmem_entry *)(unsigned long)baseaddr;
memset(cbmem_toc, 0, CBMEM_TOC_RESERVED);
cbmem_toc[0] = (struct cbmem_entry) {