[13/14] Allocate kernel and ramdisk as low as possible

Submitted by Anton Blanchard on July 9, 2010, 5:03 a.m.


Message ID 20100709050342.533669160@samba.org
State Changes Requested
Headers show

Commit Message

Anton Blanchard July 9, 2010, 5:03 a.m.
We currently start the search for free memory for the kernel at
12MB. This made sense back when firmware (real-base) was always
12MB, but it doesn't now it is often at 32MB.

In light of this and now we have fixed the initrd load issues,
just try and allocate the kernel as low as possible.

Signed-off-by: Anton Blanchard <anton@samba.org>

Patch hide | download patch | download mbox

Index: yaboot/Makefile
--- yaboot.orig/Makefile	2010-07-09 14:13:06.000000000 +1000
+++ yaboot/Makefile	2010-07-09 14:13:16.000000000 +1000
@@ -19,8 +19,8 @@  GETROOT = fakeroot
 TEXTADDR	= 0x100000
 # Malloc block of 1MB
 MALLOCSIZE	= 0x100000
-# Load kernel and ramdisk at real-base.  If there is overlap, will retry until find open space
-KERNELADDR	= 0x00C00000
+# Load kernel and ramdisk at as low as possible
+KERNELADDR     = 0x00000000
 # Set this to the prefix of your cross-compiler, if you have one.
 # Else leave it empty.