[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430
msp430hardware.h, 1.3, 1.4
David Gay
idgay at users.sourceforge.net
Wed May 23 15:49:34 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13279/msp430
Modified Files:
msp430hardware.h
Log Message:
ensure visibility of atomic statement effects
Index: msp430hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/msp430hardware.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** msp430hardware.h 12 Dec 2006 18:23:06 -0000 1.3
--- msp430hardware.h 23 May 2007 22:49:31 -0000 1.4
***************
*** 212,215 ****
--- 212,216 ----
__nesc_atomic_t result = ((READ_SR & SR_GIE) != 0);
__nesc_disable_interrupt();
+ asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
return result;
}
***************
*** 217,220 ****
--- 218,222 ----
void __nesc_atomic_end(__nesc_atomic_t reenable_interrupts) @spontaneous()
{
+ asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
if( reenable_interrupts )
__nesc_enable_interrupt();
More information about the Tinyos-2-commits
mailing list