[OpenBIOS] [commit] r984 - trunk/openbios-devel/forth/admin
repository service
svn at openbios.org
Sun Dec 12 21:09:49 CET 2010
Author: afaerber
Date: Sun Dec 12 21:09:49 2010
New Revision: 984
URL: http://tracker.coreboot.org/trac/openbios/changeset/984
Log:
forth: Fix MMU available pretty-printing for sparc64
On sparc64 a virtual address or size value is contained within one stack cell
but that makes two property cells. The columns for the /virtual-memory
"available" property thus looked wrong.
Do read the number of cells from #address-cells but make sure the size is
at least one to not break ppc.
Cc: Tarl Neustaedter <tarl-b2 at tarl.net>
Signed-off-by: Andreas Färber <andreas.faerber at 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 Sun Dec 12 21:08:25 2010 (r983)
+++ trunk/openbios-devel/forth/admin/devices.fs Sun Dec 12 21:09:49 2010 (r984)
@@ -408,7 +408,7 @@
" 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
+ my-#acells my-#scells 1 max 2swap .p-reg
2drop exit
then
2over " translations" strcmp 0= if
More information about the OpenBIOS
mailing list