]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/pxa27x/McuSleepC.nc
Remove need for volatiles in scheduler by fixing McuSleep.sleep to tell
[tinyos-2.x.git] / tos / chips / pxa27x / McuSleepC.nc
index 85d6864f7135273795b962ccf86ce08311be100d..45f98c7eefc5e4524e4c402fe36f88abed035588 100644 (file)
@@ -58,6 +58,8 @@ implementation {
                  : "r" (PWRMODE_M_IDLE)
                  );
     __nesc_enable_interrupt();
+    // All of memory may change at this point...
+    asm volatile ("" : : : "memory");
     __nesc_disable_interrupt();
     return;
   }