diff options
author | davi <davi@13f79535-47bb-0310-9956-ffa450edef68> | 2007-07-11 13:00:51 +0000 |
---|---|---|
committer | davi <davi@13f79535-47bb-0310-9956-ffa450edef68> | 2007-07-11 13:00:51 +0000 |
commit | 4b65ba861dfc8a8d67604123faec4b583d2b8254 (patch) | |
tree | 95d6467f0368b51cc1430fd37666d752ddac5713 /atomic | |
parent | 7a5041b7a7cc8dd973f356e53d979cc8cd7c64ed (diff) | |
download | libapr-4b65ba861dfc8a8d67604123faec4b583d2b8254.tar.gz |
Fix a mis-merge of PPC memory barriers.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@555258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic')
-rw-r--r-- | atomic/unix/ppc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/atomic/unix/ppc.c b/atomic/unix/ppc.c index d7673d5ee..db9fca934 100644 --- a/atomic/unix/ppc.c +++ b/atomic/unix/ppc.c @@ -179,8 +179,7 @@ APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with) { void *prev; #if APR_SIZEOF_VOIDP == 4 - asm volatile (PPC_SYNC - "loop_%=:\n" /* lost reservation */ + asm volatile ("loop_%=:\n" /* lost reservation */ " lwarx %0,0,%1\n" /* load and reserve */ PPC405_ERR77_SYNC /* ppc405 Erratum 77 */ " stwcx. %2,0,%1\n" /* store new value */ @@ -190,8 +189,7 @@ APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with) : "b" (mem), "r" (with) : "cc", "memory"); #elif APR_SIZEOF_VOIDP == 8 - asm volatile (PPC_SYNC - "loop_%=:\n" /* lost reservation */ + asm volatile ("loop_%=:\n" /* lost reservation */ " ldarx %0,0,%1\n" /* load and reserve */ PPC405_ERR77_SYNC /* ppc405 Erratum 77 */ " stdcx. %2,0,%1\n" /* store new value */ |