[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm1281 McuSleepC.nc, 1.3, 1.4
David Gay
idgay at users.sourceforge.net
Wed Jul 23 10:25:44 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm1281
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12789/chips/atm1281
Modified Files:
McuSleepC.nc
Log Message:
Remove need for volatiles in scheduler by fixing McuSleep.sleep to tell
system that memory may change when interrupts are enabled
Index: McuSleepC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm1281/McuSleepC.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** McuSleepC.nc 7 Jul 2008 19:52:52 -0000 1.3
--- McuSleepC.nc 23 Jul 2008 17:25:42 -0000 1.4
***************
*** 133,137 ****
(SMCR & 0xf0) | 1 << SE | read_uint8_t(&atm128PowerBits[powerState]);
sei();
! asm volatile ("sleep");
cli();
--- 133,138 ----
(SMCR & 0xf0) | 1 << SE | read_uint8_t(&atm128PowerBits[powerState]);
sei();
! // All of memory may change at this point...
! asm volatile ("sleep" : : : "memory");
cli();
More information about the Tinyos-2-commits
mailing list