[openfirmware] [commit] r2436 - cpu/x86/pc/alex
repository service
svn at openfirmware.info
Tue Aug 9 20:20:13 CEST 2011
Author: lwalter
Date: Tue Aug 9 20:20:12 2011
New Revision: 2436
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2436
Log:
Add mfgtest support
Modified:
cpu/x86/pc/alex/probemem.fth
Modified: cpu/x86/pc/alex/probemem.fth
==============================================================================
--- cpu/x86/pc/alex/probemem.fth Tue Aug 9 20:17:04 2011 (r2435)
+++ cpu/x86/pc/alex/probemem.fth Tue Aug 9 20:20:12 2011 (r2436)
@@ -21,6 +21,24 @@
then
;
+[ifndef] 8u.h
+: 8u.h ( n -- ) push-hex (.8) type pop-base ;
+[then]
+: .chunk ( adr len -- ) ." Testing memory at: " swap 8u.h ." size " 8u.h cr ;
+defer test-s3 ( -- error? ) ' false is test-s3
+: selftest ( -- error? )
+ " available" get-my-property if ." No available property" cr true exit then
+ ( adr len )
+ begin ?dup while
+ 2 decode-ints swap ( rem$ chunk$ )
+ 2dup .chunk ( rem$ chunk$ )
+ \ We maintain a 1-1 convenience mapping so explicit mapping is unnecessary
+ memory-test-suite if 2drop true exit then ( rem$ )
+ repeat drop
+
+ test-s3
+;
+
device-end
also forth definitions
More information about the openfirmware
mailing list