[coreboot] Patch set updated for coreboot: efcb447 selfboot: Allow loading SeaBIOS into a reserved region in the lower 1MB This fixes loading SeaBIOS when lower memory is reserved.

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Mar 7 02:12:56 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 efcb44797d8cb116926eb6876cbbf59b373da804
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