[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128/sim McuSleepC.nc, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Wed Jul 23 10:25:44 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/sim
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12789/chips/atm128/sim

Modified Files:
	McuSleepC.nc 
Log Message:
Remove need for volatiles in scheduler by fixing McuSleep.sleep to tell
system that memory may change when interrupts are enabled


Index: McuSleepC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/sim/McuSleepC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** McuSleepC.nc	12 Dec 2006 18:23:04 -0000	1.4
--- McuSleepC.nc	23 Jul 2008 17:25:42 -0000	1.5
***************
*** 111,115 ****
      }
      sei();
!     asm volatile ("sleep");
      cli();
    }
--- 111,116 ----
      }
      sei();
!     // All of memory may change at this point...
!     asm volatile ("sleep" : : : "memory");
      cli();
    }



More information about the Tinyos-2-commits mailing list