Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 17:29:16 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 85222 for review
Message-ID:  <200510131729.j9DHTGx3067572@repoman.freebsd.org>

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

Change 85222 by jhb@jhb_slimer on 2005/10/13 17:28:30

	EGCCTOOSTUPID.
	
	Reported by:	cognet

Affected files ...

.. //depot/projects/smpng/sys/arm/include/atomic.h#20 edit

Differences ...

==== //depot/projects/smpng/sys/arm/include/atomic.h#20 (text+ko) ====

@@ -77,9 +77,9 @@
 static __inline uint32_t
 __swp(uint32_t val, volatile uint32_t *ptr)
 {
-	__asm __volatile("swp	%0, %2, %1"
+	__asm __volatile("swp	%0, %2, [%3]"
 	    : "=&r" (val), "=m" (*ptr)
-	    : "r" (val) , "m" (*ptr)
+	    : "r" (val), "r" (ptr), "m" (*ptr)
 	    : "memory");
 	return (val);
 }



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