j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: afaerber Date: Mon Nov 15 23:13:13 2010 New Revision: 959 URL: http://tracker.coreboot.org/trac/openbios/changeset/959
Log: Pretty-print MMU available property
v4: * Pass 1 as #acells and #scells, following IEEE 1275 sect. 3.6.5. On ppc the cpu nodes would've had #size-cells as 0.
v3: * Evaluate /chosen mmu property rather than device_type "cpu".
Signed-off-by: Andreas Färber andreas.faerber@web.de
Modified: trunk/openbios-devel/forth/admin/devices.fs
Modified: trunk/openbios-devel/forth/admin/devices.fs ============================================================================== --- trunk/openbios-devel/forth/admin/devices.fs Mon Nov 15 23:10:20 2010 (r958) +++ trunk/openbios-devel/forth/admin/devices.fs Mon Nov 15 23:13:13 2010 (r959) @@ -339,6 +339,16 @@ 2drop exit then then + " /chosen" find-dev if + " mmu" rot get-package-property 0= if + decode-int nip nip ihandle>phandle active-package = if + 2over " available" strcmp 0= if + 1 1 2swap .p-reg + 2drop exit + then + then + then + then
2swap 2drop ( data len ) (.property)