[openfirmware] [commit] r2397 - cpu/arm/mmp2
repository service
svn at openfirmware.info
Mon Aug 1 21:11:37 CEST 2011
Author: wmb
Date: Mon Aug 1 21:11:37 2011
New Revision: 2397
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2397
Log:
OLPC XO-1.75 - Fixed problem in hardware-accelerated hashing function introduced by the virtual != physical change, thus fixing fs-update .
Modified:
cpu/arm/mmp2/hash.fth
Modified: cpu/arm/mmp2/hash.fth
==============================================================================
--- cpu/arm/mmp2/hash.fth Fri Jul 29 04:24:25 2011 (r2396)
+++ cpu/arm/mmp2/hash.fth Mon Aug 1 21:11:37 2011 (r2397)
@@ -4,7 +4,7 @@
h# 8101 constant dval
: dma>hash ( adr len -- )
4 round-up 2 rshift h# 29080c io! ( adr )
- h# 290808 io! ( )
+ >physical h# 290808 io! ( )
dval h# 290800 io! ( )
\ begin h# 290814 io@ 1 and until
;
@@ -74,7 +74,7 @@
repeat ( adr len )
2drop
;
-: hash-final ( -- )
+: hash-final ( -- adr len )
#hashed set-msg-size ( )
#hash-buf h# 291810 io! ( )
#hash-buf if
@@ -83,7 +83,7 @@
7 hash-control! \ Final, with hardware padding
hash-go
dma-stop
- h# 291820 /hash-digest
+ h# 291820 +io /hash-digest
;
: hash1 ( adr len -- )
hash-init ( adr len )
More information about the openfirmware
mailing list