PERFORCE change 72453 for review

John Baldwin jhb at FreeBSD.org
Thu Mar 3 22:08:45 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=72453

Change 72453 by jhb at jhb_slimer on 2005/03/03 22:07:55

	Ok, use a more constrained clobber here.
	
	Suggested by:  alc

Affected files ...

.. //depot/projects/smpng/sys/sparc64/include/cpufunc.h#21 edit

Differences ...

==== //depot/projects/smpng/sys/sparc64/include/cpufunc.h#21 (text+ko) ====

@@ -63,14 +63,14 @@
 #define	casa(rs1, rs2, rd, asi) ({					\
 	u_int __rd = (uint32_t)(rd);					\
 	__asm __volatile("casa [%1] %2, %3, %0"				\
-	    : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2) : "memory");\
+	    : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2), "m" (*rs1));\
 	__rd;								\
 })
 
 #define	casxa(rs1, rs2, rd, asi) ({					\
 	u_long __rd = (uint64_t)(rd);					\
 	__asm __volatile("casxa [%1] %2, %3, %0"			\
-	    : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2) : "memory");\
+	    : "+r" (__rd) : "r" (rs1), "n" (asi), "r" (rs2), "m" (*rs1));\
 	__rd;								\
 })
 


More information about the p4-projects mailing list