Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2005 20:45:07 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 74206 for review
Message-ID:  <200503312045.j2VKj7Dv059310@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=74206

Change 74206 by jhb@jhb_slimer on 2005/03/31 20:45:05

	Mark the memory as an output, not just an input.

Affected files ...

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

Differences ...

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

@@ -62,15 +62,17 @@
 
 #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), "m" (*rs1));\
+	__asm __volatile("casa [%2] %3, %4, %0"				\
+	    : "+r" (__rd), "=m" (*rs1)					\
+	    : "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), "m" (*rs1));\
+	__asm __volatile("casxa [%2] %3, %4, %0"			\
+	    : "+r" (__rd), "=m" (*rs1)					\
+	    : "r" (rs1), "n" (asi), "r" (rs2), "m" (*rs1));		\
 	__rd;								\
 })
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503312045.j2VKj7Dv059310>