Changeset 3041
- Timestamp:
- Jul 7, 2012 4:20:04 AM (11 months ago)
- Location:
- cpu/arm
- Files:
-
- 2 edited
-
linux.fth (modified) (5 diffs)
-
olpc/build-fw.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/linux.fth
r3023 r3041 10 10 0 value linux-memtop 11 11 12 defer mapped-limit 12 13 defer memory-limit 13 14 \ Find the end of the largest piece of memory … … 33 34 ; 34 35 ' (memory-limit) to memory-limit \ Override by platform code if necessary 36 ' memory-limit to mapped-limit \ Override by platform code if necessary 35 37 36 38 \ see http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html … … 93 95 : use-fdt ( -- ) true to use-fdt? ; 94 96 97 h# 10000 constant /fdt-max 95 98 : linux-fixup ( -- ) 96 99 [ifdef] linux-logo linux-logo [then] … … 105 108 [ifdef] flatten-device-tree 106 109 use-fdt? if 107 load-base h# 40000 -to linux-params108 linux-params h# 40000flatten-device-tree110 ramdisk-adr ?dup 0= if mapped-limit then /fdt-max - to linux-params 111 linux-params /fdt-max flatten-device-tree 109 112 else 110 113 args-buf cscount linux-params set-parameters … … 123 126 to /ramdisk ( adr ) 124 127 125 dup memory-limit umin /ramdisk -( adr new-ramdisk-adr )128 mapped-limit /ramdisk - ( adr new-ramdisk-adr ) 126 129 tuck /ramdisk move ( new-ramdisk-adr ) 127 130 \ dup to linux-memtop -
cpu/arm/olpc/build-fw.fth
r3040 r3041 491 491 : olpc-memory-limit ( -- adr ) extra-mem-va >physical ; 492 492 ' olpc-memory-limit to memory-limit 493 : olpc-mapped-limit ( -- adr ) dma-mem-va >physical ; 494 ' olpc-mapped-limit to mapped-limit 493 495 494 496 \+ olpc-cl2 d# 9999 to arm-linux-machine-type \ XO-1.75
Note: See TracChangeset
for help on using the changeset viewer.
