]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm1281/McuSleepC.nc
Remove need for volatiles in scheduler by fixing McuSleep.sleep to tell
[tinyos-2.x.git] / tos / chips / atm1281 / McuSleepC.nc
index ad4a4ab0aca11e3a6ed9817cff84602efa288908..19b8738cb868ec21cae440ec2d205b1ae25fe762 100644 (file)
@@ -132,7 +132,8 @@ implementation {
     SMCR =
       (SMCR & 0xf0) | 1 << SE | read_uint8_t(&atm128PowerBits[powerState]);
     sei();
-    asm volatile ("sleep");
+    // All of memory may change at this point...
+    asm volatile ("sleep" : : : "memory");
     cli();
 
     CLR_BIT(SMCR, SE);