X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fatm128%2FMcuSleepC.nc;h=a7c7433a24d93e6563c48a6ec9bb0df4e98b4542;hb=d0ac870a232fc232fb630ad64874aadbf1b244a6;hp=9d03201efa5f55f565fef271ad5f1393450582cb;hpb=c7c109027e0fd413de7ddaadd8afe670afb33fdf;p=tinyos-2.x.git diff --git a/tos/chips/atm128/McuSleepC.nc b/tos/chips/atm128/McuSleepC.nc index 9d03201e..a7c7433a 100644 --- a/tos/chips/atm128/McuSleepC.nc +++ b/tos/chips/atm128/McuSleepC.nc @@ -102,7 +102,8 @@ implementation { (MCUCR & 0xe3) | 1 << SE | read_uint8_t(&atm128PowerBits[powerState]); sei(); - asm volatile ("sleep"); + // All of memory may change at this point... + asm volatile ("sleep" : : : "memory"); cli(); }