*
*/
-module McuSleepC {
+module McuSleepC @safe() {
provides {
interface McuSleep;
interface McuPowerState;
}
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();
}