[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128 McuSleepC.nc, 1.9, 1.10

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
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12789/chips/atm128

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/McuSleepC.nc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** McuSleepC.nc	26 Jun 2008 03:38:27 -0000	1.9
--- McuSleepC.nc	23 Jul 2008 17:25:42 -0000	1.10
***************
*** 103,107 ****
  
      sei();
!     asm volatile ("sleep");
      cli();
    }
--- 103,108 ----
  
      sei();
!     // All of memory may change at this point...
!     asm volatile ("sleep" : : : "memory");
      cli();
    }



More information about the Tinyos-2-commits mailing list