Author: wmb Date: Fri Dec 10 23:10:15 2010 New Revision: 2078 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2078
Log: OLPC XO-1.75 - Use WFI instruction for idling, instead of the coprocessor variant that doesn't seem to be effective on MMP2.
Modified: cpu/arm/mmp2/timer.fth cpu/arm/olpc/1.75/fw.bth
Modified: cpu/arm/mmp2/timer.fth ============================================================================== --- cpu/arm/mmp2/timer.fth Fri Dec 10 23:08:41 2010 (r2077) +++ cpu/arm/mmp2/timer.fth Fri Dec 10 23:10:15 2010 (r2078) @@ -167,9 +167,9 @@ false then ; -: do-idle ( -- ) c7-wfi ; +code wfi ( -- ) wfi c; : safe-idle ( -- ) - can-idle? if do-idle then + can-idle? if wfi then \ do-lid ; ' safe-idle to stdin-idle
Modified: cpu/arm/olpc/1.75/fw.bth ============================================================================== --- cpu/arm/olpc/1.75/fw.bth Fri Dec 10 23:08:41 2010 (r2077) +++ cpu/arm/olpc/1.75/fw.bth Fri Dec 10 23:10:15 2010 (r2078) @@ -191,7 +191,7 @@ h# 38 mod 8 + " rtc!" clock-node @ ( data index adr len ih ) ['] $call-method if 2drop 3drop then ; -: halt ( -- ) c7-wfi ; +code halt ( -- ) wfi c; fload ${BP}/cpu/x86/pc/olpc/sound.fth fload ${BP}/cpu/x86/pc/olpc/security.fth