[coreboot] New patch to review for filo: de5b214 linux_load: Put initrd before FILO

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Fri Oct 28 12:08:19 CEST 2011


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/344

-gerrit

commit de5b2140a1ff7595b8988a903f9a4d175c05c3ad
Author: Patrick Georgi <patrick.georgi at secunet.com>
Date:   Fri Oct 28 12:02:58 2011 +0200

    linux_load: Put initrd before FILO
    
    off by one that made Linux reject some initrds.
    
    Change-Id: Ifc2d4446d78992298f656cfc92f01cf5ac0c6d90
    Signed-off-by: Patrick Georgi <patrick.georgi at secunet.com>
---
 i386/linux_load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/i386/linux_load.c b/i386/linux_load.c
index 8d00ca2..07855bd 100644
--- a/i386/linux_load.c
+++ b/i386/linux_load.c
@@ -576,7 +576,7 @@ static int load_initrd(struct linux_header *hdr,
 
 	/* FILO itself is at the top of RAM. (relocated)
 	 * So, try putting initrd just below us. */
-	end = virt_to_phys(_start);
+	end = virt_to_phys(_start - 1);
 	if (end > max)
 		end = max;
 




More information about the coreboot mailing list