]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/sim/McuSleepC.nc
Remove need for volatiles in scheduler by fixing McuSleep.sleep to tell
[tinyos-2.x.git] / tos / chips / atm128 / sim / McuSleepC.nc
index 5919ea19afc2e631898b5188eb8c4a191599e608..2344bc99d1a15f17c020592e7cff2b1be2e4429f 100644 (file)
@@ -110,7 +110,8 @@ implementation {
       MCUCR = temp;
     }
     sei();
-    asm volatile ("sleep");
+    // All of memory may change at this point...
+    asm volatile ("sleep" : : : "memory");
     cli();
   }