2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

add 'sync' to ISC_PLATFORM_USEMACASM build as well

This commit is contained in:
Mark Andrews 2011-03-08 00:52:42 +00:00
parent 35efe74edb
commit 345d37dbb6

View File

@ -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"