Author: wmb Date: Wed Oct 5 02:47:39 2011 New Revision: 2582 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2582
Log: OLPC XO-1.75 - change the loop structure in put-data to make it easier to debug.
Modified: cpu/arm/olpc/spcmd.fth
Modified: cpu/arm/olpc/spcmd.fth ============================================================================== --- cpu/arm/olpc/spcmd.fth Wed Oct 5 02:09:47 2011 (r2581) +++ cpu/arm/olpc/spcmd.fth Wed Oct 5 02:47:39 2011 (r2582) @@ -141,11 +141,12 @@ : put-data ( byte -- ) get-msecs d# 100 + ( byte time-limit ) begin ( byte time-limit ) + h# c4 reg@ 7 and ( byte time-limit flag ) + while ( byte time-limit ) dup get-msecs - 0< if ( byte time-limit ) 2drop exit ( -- ) then ( byte time-limit ) - h# c4 reg@ 7 and 0= ( byte time-limit flag ) - until ( byte time-limit ) + repeat ( byte time-limit ) drop ( byte ) port# bwjoin h# 40 reg! ( ) ;