[coreboot-gerrit] Patch set updated for coreboot: soc/intel/quark: Return NULL for top_of_memory

Lee Leahy (leroy.p.leahy@intel.com) gerrit at coreboot.org
Tue Mar 14 21:08:12 CET 2017


Lee Leahy (leroy.p.leahy at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18802

-gerrit

commit 63c5876a5d38d08b7098a32fe1baac400a837154
Author: Lee Leahy <leroy.p.leahy at intel.com>
Date:   Thu Jan 5 10:23:36 2017 -0800

    soc/intel/quark: Return NULL for top_of_memory
    
    Return NULL for top_of_memory when the register has not been set.
    
    TEST=Build and run on Galileo Gen2
    
    Change-Id: If79cac68c2a64aa9bf3be72d3cfc4c73fceef12b
    Signed-off-by: Lee Leahy <leroy.p.leahy at intel.com>
---
 src/soc/intel/quark/memmap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/soc/intel/quark/memmap.c b/src/soc/intel/quark/memmap.c
index 53a1b24..d67856c 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;



More information about the coreboot-gerrit mailing list