On Tue, Nov 30, 2010 at 8:47 PM, Andreas Färber andreas.faerber@web.de wrote:
Am 28.11.2010 um 19:49 schrieb Andreas Färber:
Display one MMU translation per row for .properties command.
Signed-off-by: Andreas Färber andreas.faerber@web.de
forth/admin/devices.fs | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/forth/admin/devices.fs b/forth/admin/devices.fs index 7a5b693..00b4f55 100644 --- a/forth/admin/devices.fs +++ b/forth/admin/devices.fs @@ -326,6 +326,30 @@ 3drop drop ;
+\ Print the value of the MMU translations property +: .p-translations ( data len -- )
- 2dup + -rot ( data+len data len )
- >r >r [IFDEF] CONFIG_PPC
- [IFDEF] CONFIG_PPC64 5 [ELSE] 4 [THEN]
- [ELSE]
- 3
This value seems wrong: On a Sun Fire V480 in /virtual-memory there's six cells displayed in a row (3 x2). On sparc32 I guess this might be four? Can anyone check that please? Thanks!
'translations' doesn't exist in any Sparc32 trees that I have.