[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430 McuSleepC.nc, 1.4, 1.5
David Gay
idgay at users.sourceforge.net
Wed Jul 23 10:25:44 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12789/chips/msp430
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/msp430/McuSleepC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** McuSleepC.nc 26 Jun 2008 03:38:27 -0000 1.4
--- McuSleepC.nc 23 Jul 2008 17:25:42 -0000 1.5
***************
*** 115,118 ****
--- 115,120 ----
temp = msp430PowerBits[powerState] | SR_GIE;
__asm__ __volatile__( "bis %0, r2" : : "m" (temp) );
+ // All of memory may change at this point...
+ asm volatile ("" : : : "memory");
__nesc_disable_interrupt();
}
More information about the Tinyos-2-commits
mailing list