From: Mark Andrews Date: Tue, 8 Mar 2011 00:52:42 +0000 (+0000) Subject: add 'sync' to ISC_PLATFORM_USEMACASM build as well X-Git-Tag: v9.9.0a1~568 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=345d37dbb6ca0fe7a977a4b043d2261a3adcc33b;p=thirdparty%2Fbind9.git add 'sync' to ISC_PLATFORM_USEMACASM build as well --- diff --git a/lib/isc/powerpc/include/isc/atomic.h b/lib/isc/powerpc/include/isc/atomic.h index f1638164ddd..cec5d9cc653 100644 --- a/lib/isc/powerpc/include/isc/atomic.h +++ b/lib/isc/powerpc/include/isc/atomic.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: atomic.h,v 1.10 2011/03/07 23:47:37 tbox Exp $ */ +/* $Id: atomic.h,v 1.11 2011/03/08 00:52:42 marka Exp $ */ #ifndef ISC_ATOMIC_H #define ISC_ATOMIC_H 1 @@ -110,7 +110,8 @@ isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) { "mr %0, r6\n" "add r6, r6, %2\n" "stwcx. r6, 0, %1\n" - "bne- 1b" + "bne- 1b\n" + "sync" #else "1:" "lwarx 6, 0, %1\n" @@ -136,7 +137,8 @@ isc_atomic_store(void *p, isc_int32_t val) { "lwarx r6, 0, %0\n" "lwz r6, %1\n" "stwcx. r6, 0, %0\n" - "bne- 1b" + "bne- 1b\n" + "sync" #else "1:" "lwarx 6, 0, %0\n" @@ -165,7 +167,8 @@ isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { "mr r6, %3\n" "stwcx. r6, 0, %1\n" "bne- 1b\n" - "2:" + "2:\n" + "sync" #else "1:" "lwarx 6, 0, %1\n"