X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fatm1281%2FMcuSleepC.nc;h=19b8738cb868ec21cae440ec2d205b1ae25fe762;hb=d0ac870a232fc232fb630ad64874aadbf1b244a6;hp=ad4a4ab0aca11e3a6ed9817cff84602efa288908;hpb=c7c109027e0fd413de7ddaadd8afe670afb33fdf;p=tinyos-2.x.git diff --git a/tos/chips/atm1281/McuSleepC.nc b/tos/chips/atm1281/McuSleepC.nc index ad4a4ab0..19b8738c 100644 --- a/tos/chips/atm1281/McuSleepC.nc +++ b/tos/chips/atm1281/McuSleepC.nc @@ -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);