Date: Mon, 7 Mar 2005 20:23:52 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 72654 for review Message-ID: <200503072023.j27KNq1S014939@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=72654 Change 72654 by jhb@jhb_slimer on 2005/03/07 20:23:28 Clobber just the memory being modified, not all memory. Affected files ... .. //depot/projects/smpng/sys/arm/include/atomic.h#6 edit Differences ... ==== //depot/projects/smpng/sys/arm/include/atomic.h#6 (text+ko) ==== @@ -74,8 +74,8 @@ static __inline uint32_t __swp(uint32_t val, volatile uint32_t *ptr) { - __asm __volatile("swp %0, %1, [%2]" - : "=&r" (val) : "r" (val) , "r" (ptr) : "memory"); + __asm __volatile("swp %0, %2, [%3]" + : "=&r" (val), "=m" (*ptr) : "r" (val) , "r" (ptr), "m" (*ptr)); return (val); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503072023.j27KNq1S014939>