[coreboot] Patch set updated for coreboot: 1f554ab selfboot: Allow loading SeaBIOS into a reserved region in the lower 1MB

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Thu Mar 8 20:04:06 CET 2012


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/732

-gerrit

commit 1f554abbde1e56f4b56bb7b9a3272fb4b5869e43
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Tue Oct 18 15:11:04 2011 -0700

    selfboot: Allow loading SeaBIOS into a reserved region in the lower 1MB
    
    This fixes loading SeaBIOS when lower memory is reserved.
    
    Change-Id: Idbdcaf95f3307f97307f304d6d677406d059927d
    Signed-off-by: Stefan Reinauer <reinauer at google.com>
---
 src/boot/selfboot.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/boot/selfboot.c b/src/boot/selfboot.c
index fe56653..bbf160e 100644
--- a/src/boot/selfboot.c
+++ b/src/boot/selfboot.c
@@ -148,6 +148,11 @@ static int valid_area(struct lb_memory *mem, unsigned long buffer,
 		}
 	}
 	if (i == mem_entries) {
+		if (start < (1024*1024) && end <=(1024*1024)) {
+			printk(BIOS_DEBUG, "Payload (probably SeaBIOS) loaded"
+				" into a reserved area in the lower 1MB\n");
+			return 1;
+		}
 		printk(BIOS_ERR, "No matching ram area found for range:\n");
 		printk(BIOS_ERR, "  [0x%016lx, 0x%016lx)\n", start, end);
 		printk(BIOS_ERR, "Ram areas\n");




More information about the coreboot mailing list