diff options
author | Davi Arnaut <davi@apache.org> | 2007-07-11 13:00:51 +0000 |
---|---|---|
committer | Davi Arnaut <davi@apache.org> | 2007-07-11 13:00:51 +0000 |
commit | e279bd3015c50aa5a43e59851063583c7c526842 (patch) | |
tree | 95d6467f0368b51cc1430fd37666d752ddac5713 /atomic | |
parent | 99f54f536886d68d1d6b13dad297b8fb7741232c (diff) | |
download | apr-e279bd3015c50aa5a43e59851063583c7c526842.tar.gz |
Fix a mis-merge of PPC memory barriers.
git-svn-id: https://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 */ |