[openfirmware] [commit] r2981 - cpu/x86/pc/olpc

repository service svn at openfirmware.info
Fri May 18 03:54:44 CEST 2012


Author: quozl
Date: Fri May 18 03:54:44 2012
New Revision: 2981
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2981

Log:
OLPC XO-1 - tidy "test /memory" display by copying from XO-1.75 implementation

Modified:
   cpu/x86/pc/olpc/probemem.fth

Modified: cpu/x86/pc/olpc/probemem.fth
==============================================================================
--- cpu/x86/pc/olpc/probemem.fth	Fri May 18 03:50:24 2012	(r2980)
+++ cpu/x86/pc/olpc/probemem.fth	Fri May 18 03:54:44 2012	(r2981)
@@ -74,6 +74,9 @@
 [then]
 ;
 
+: show-line  ( adr len -- )  (cr type  3 spaces  kill-line  ;
+' show-line to show-status
+
 [ifndef] 8u.h
 : 8u.h  ( n -- )  push-hex (.8) type pop-base  ;
 [then]
@@ -87,7 +90,13 @@
 [ifdef] virtual-mode
       2dup over swap 3 mmu-map		 ( rem$ chunk$ )
 [then]
-      memory-test-suite  if  2drop true exit  then	 ( rem$ )
+      memory-test-suite                  ( rem$ status )
+      0<>  if
+	 "     !!Failed!!" show-status  cr ( rem$ )
+	 2drop true exit
+      else
+         "     Succeeded" show-status  cr  ( rem$ )
+      then
    repeat  drop
    false
 ;



More information about the openfirmware mailing list