diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/quark/memmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/quark/memmap.c b/src/soc/intel/quark/memmap.c index 53a1b24094..d67856cc74 100644 --- a/src/soc/intel/quark/memmap.c +++ b/src/soc/intel/quark/memmap.c @@ -26,7 +26,8 @@ void *cbmem_top(void) top_of_memory <<= 16; /* Reserve 64 KiB for RMU firmware */ - top_of_memory -= 0x10000; + if (top_of_memory) + top_of_memory -= 0x10000; /* Return the top of memory */ return (void *)top_of_memory; |