aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-04-20 21:54:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-04-20 21:54:34 +0000
commitf9ba0a7fe56398e89fe349476d9e437c3197ea28 (patch)
tree0089b9d39ef018201b6c4eddeb9cba795e37f32e /src/backend/storage
parentb5d0051ecf5f061e7933e17306fee00f46b2b57c (diff)
downloadpostgresql-f9ba0a7fe56398e89fe349476d9e437c3197ea28.tar.gz
postgresql-f9ba0a7fe56398e89fe349476d9e437c3197ea28.zip
Apple's assembler likes the inlined TAS syntax too, so no reason to
maintain a separate out-of-line version of PPC tas() anymore. Also fix S_UNLOCK for __powerpc64__ platforms.
Diffstat (limited to 'src/backend/storage')
-rw-r--r--src/backend/storage/lmgr/s_lock.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c
index f767863b2a2..962ee17a077 100644
--- a/src/backend/storage/lmgr/s_lock.c
+++ b/src/backend/storage/lmgr/s_lock.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/s_lock.c,v 1.10 2002/11/10 00:33:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/s_lock.c,v 1.11 2003/04/20 21:54:34 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -111,39 +111,6 @@ _success: \n\
}
#endif /* __m68k__ */
-#if defined(__APPLE__) && defined(__ppc__)
-/* used in darwin. */
-/* We key off __APPLE__ here because this function differs from
- * the LinuxPPC implementation only in compiler syntax.
- *
- * NOTE: per the Enhanced PowerPC Architecture manual, v1.0 dated 7-May-2002,
- * an isync is a sufficient synchronization barrier after a lwarx/stwcx loop.
- */
-static void
-tas_dummy()
-{
- __asm__ __volatile__(
- "\
- .globl tas \n\
- .globl _tas \n\
-_tas: \n\
-tas: \n\
- lwarx r5,0,r3 \n\
- cmpwi r5,0 \n\
- bne fail \n\
- addi r5,r5,1 \n\
- stwcx. r5,0,r3 \n\
- beq success \n\
-fail: li r3,1 \n\
- blr \n\
-success: \n\
- isync \n\
- li r3,0 \n\
- blr \n\
-");
-}
-#endif /* __APPLE__ && __ppc__ */
-
#if defined(__mips__) && !defined(__sgi)
static void
tas_dummy()