[openfirmware] [commit] r1881 - cpu/x86/pc/olpc/via
repository service
svn at openfirmware.info
Thu Jul 15 20:38:18 CEST 2010
Author: wmb
Date: Thu Jul 15 20:38:18 2010
New Revision: 1881
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1881
Log:
OLPC XO-1.5 - added crypto engine test to CPU node selftest as an early screen for Via chips with broken crypto.
Modified:
cpu/x86/pc/olpc/via/padlock.fth
Modified: cpu/x86/pc/olpc/via/padlock.fth
==============================================================================
--- cpu/x86/pc/olpc/via/padlock.fth Thu Jul 15 20:27:57 2010 (r1880)
+++ cpu/x86/pc/olpc/via/padlock.fth Thu Jul 15 20:38:18 2010 (r1881)
@@ -56,6 +56,20 @@
sha-buf h# 20 2dup lbflips
;
+dev /cpu
+warning off
+: selftest ( -- )
+ h# 100 0 do i load-base i + c! loop
+ load-base h# 100 sha-256 ( adr len )
+ " "(40 af f2 e9 d2 d8 92 2e 47 af d4 64 8e 69 67 49 71 58 78 5f bd 1d a8 70 e7 11 02 66 bf 94 48 80)"
+ $= 0= if
+ ." The CPU's cryptographic hardware is broken" cr true exit
+ then
+ selftest
+;
+warning on
+dend
+
\ LICENSE_BEGIN
\ Copyright (c) 2009 FirmWorks
\
More information about the openfirmware
mailing list