[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x pxa27xhardware.h, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Wed May 23 15:49:34 PDT 2007


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

Modified Files:
	pxa27xhardware.h 
Log Message:
ensure visibility of atomic statement effects


Index: pxa27xhardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/pxa27x/pxa27xhardware.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** pxa27xhardware.h	12 Dec 2006 18:23:12 -0000	1.4
--- pxa27xhardware.h	23 May 2007 22:49:31 -0000	1.5
***************
*** 105,108 ****
--- 105,109 ----
  		: "0" (result) , "1" (temp) , "i" (ARM_CPSR_INT_MASK)
  		);
+   asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
    return result;
  }
***************
*** 112,115 ****
--- 113,117 ----
    uint32_t  statusReg = 0;
    //make sure that we only mess with the INT bit
+   asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
    oldState &= ARM_CPSR_INT_MASK;
    asm volatile (



More information about the Tinyos-2-commits mailing list