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:10:20 2010 New Revision: 958 URL: http://tracker.coreboot.org/trac/openbios/changeset/958
Log: Pretty-print /memory available property
v4: * Pass #address-cells and #size-cells as arguments.
v3: * Simplify condition.
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:04:03 2010 (r957) +++ trunk/openbios-devel/forth/admin/devices.fs Mon Nov 15 23:10:20 2010 (r958) @@ -333,6 +333,13 @@ 2drop exit then
+ active-package get-nodename " memory" strcmp 0= if + 2over " available" strcmp 0= if + my-#acells my-#scells 2swap .p-reg + 2drop exit + then + then + 2swap 2drop ( data len ) (.property) ;