X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2FMcuSleepC.nc;h=504e9add33adeaf1a387e331cabab971eb2d9079;hb=d0ac870a232fc232fb630ad64874aadbf1b244a6;hp=369737c85e7533cebc1ca6c8ae44fd909b3e0724;hpb=c7c109027e0fd413de7ddaadd8afe670afb33fdf;p=tinyos-2.x.git diff --git a/tos/chips/msp430/McuSleepC.nc b/tos/chips/msp430/McuSleepC.nc index 369737c8..504e9add 100644 --- a/tos/chips/msp430/McuSleepC.nc +++ b/tos/chips/msp430/McuSleepC.nc @@ -114,6 +114,8 @@ implementation { } temp = msp430PowerBits[powerState] | SR_GIE; __asm__ __volatile__( "bis %0, r2" : : "m" (temp) ); + // All of memory may change at this point... + asm volatile ("" : : : "memory"); __nesc_disable_interrupt(); }