[Tinyos-2-commits] CVS: tinyos-2.x/tos/system SchedulerBasicP.nc, 1.8, 1.9

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


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

Modified Files:
	SchedulerBasicP.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: SchedulerBasicP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/system/SchedulerBasicP.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** SchedulerBasicP.nc	12 Jul 2008 04:44:45 -0000	1.8
--- SchedulerBasicP.nc	23 Jul 2008 17:25:42 -0000	1.9
***************
*** 54,60 ****
    };
  
!   volatile uint8_t m_head;
!   volatile uint8_t m_tail;
!   volatile uint8_t m_next[NUM_TASKS];
  
    // Helper functions (internal functions) intentionally do not have atomic
--- 54,62 ----
    };
  
!   uint8_t m_head;
!   uint8_t m_tail;
!   uint8_t m_next[NUM_TASKS];
! 
! #define v_head (*(volatile uint8_t *)&m_head)
  
    // Helper functions (internal functions) intentionally do not have atomic



More information about the Tinyos-2-commits mailing list