Author: quozl Date: Thu Jul 12 08:29:04 2012 New Revision: 3051 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3051
Log: OLPC XO-1.75 - move the ramdisk below load-base, as linux will not boot with it in the second half of 1GB units, add room below load-base, which can be thought of as a border between where stuff is initially loaded into, vs where stuff is moved to, #12008
Modified: cpu/arm/linux.fth cpu/arm/olpc/addrs.fth
Modified: cpu/arm/linux.fth ============================================================================== --- cpu/arm/linux.fth Wed Jul 11 04:00:56 2012 (r3050) +++ cpu/arm/linux.fth Thu Jul 12 08:29:04 2012 (r3051) @@ -107,7 +107,7 @@ arm-linux-machine-type to r1 [ifdef] flatten-device-tree use-fdt? if - ramdisk-adr ?dup 0= if mapped-limit then /fdt-max - to linux-params + ramdisk-adr ?dup 0= if load-base then /fdt-max - to linux-params linux-params /fdt-max flatten-device-tree else args-buf cscount linux-params set-parameters @@ -125,7 +125,7 @@ : linux-place-ramdisk ( adr len -- ) to /ramdisk ( adr )
- mapped-limit /ramdisk - ( adr new-ramdisk-adr ) + load-base /ramdisk - ( adr new-ramdisk-adr ) tuck /ramdisk move ( new-ramdisk-adr ) \ dup to linux-memtop to ramdisk-adr
Modified: cpu/arm/olpc/addrs.fth ============================================================================== --- cpu/arm/olpc/addrs.fth Wed Jul 11 04:00:56 2012 (r3050) +++ cpu/arm/olpc/addrs.fth Thu Jul 12 08:29:04 2012 (r3051) @@ -31,7 +31,7 @@ \ fw-mem-pa page-table-offset + constant page-table-pa
\ h# 0110.0000 constant def-load-base -h# 0800.0000 constant def-load-base +h# 0c00.0000 constant def-load-base
\ The heap starts at RAMtop, which on this system is "fw-mem-pa /fw-mem +"
openfirmware@openfirmware.info