Changeset 3213


Ignore:
Timestamp:
Aug 23, 2012, 10:12:25 PM (2 years ago)
Author:
wmb
Message:

ARM - Added linux,usable-memory property to /memory to work around the fact that Linux does not honor the "available" property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/linux.fth

    r3051 r3213  
    9595: use-fdt  ( -- )  true to use-fdt?  ; 
    9696 
     97: make-usable-property  ( -- ) 
     98   " /memory" find-device 
     99   0 encode-int  linux-memtop encode-int encode+  " linux,usable-memory" property 
     100   device-end 
     101; 
     102 
    97103h# 10000 constant /fdt-max 
    98104: linux-fixup  ( -- ) 
     
    108114[ifdef] flatten-device-tree 
    109115   use-fdt?  if 
     116      make-usable-property 
    110117      ramdisk-adr ?dup 0=  if  load-base  then  /fdt-max -  to linux-params 
    111118      linux-params /fdt-max flatten-device-tree 
Note: See TracChangeset for help on using the changeset viewer.