aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-25 17:17:10 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-25 17:17:10 +0000
commit1a33436224146fc1091a7eca2e87fde3c5463767 (patch)
tree5dd237b0389c53d90fa85f9dafb2a291df6915c7 /src/backend
parent2613b7478573c7fc833c90ff8aa731a15d32aaaf (diff)
downloadpostgresql-1a33436224146fc1091a7eca2e87fde3c5463767.tar.gz
postgresql-1a33436224146fc1091a7eca2e87fde3c5463767.zip
Replace out-of-line tas() assembly code for MIPS with a properly
constrained GCC inline version. Thiemo Seufer, by way of Martin Pitt.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/storage/lmgr/s_lock.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c
index e12b683d98a..f57dd9a439e 100644
--- a/src/backend/storage/lmgr/s_lock.c
+++ b/src/backend/storage/lmgr/s_lock.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.36 2005/07/30 03:07:40 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.37 2005/08/25 17:17:09 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -172,34 +172,6 @@ _success: \n\
#endif /* __m68k__ */
-#if defined(__mips__) && !defined(__sgi)
-static void
-tas_dummy()
-{
- __asm__ __volatile__(
- "\
-.global tas \n\
-tas: \n\
- .frame $sp, 0, $31 \n\
- .set push \n\
- .set mips2 \n\
- ll $14, 0($4) \n\
- or $15, $14, 1 \n\
- sc $15, 0($4) \n\
- .set pop \n\
- beq $15, 0, fail\n\
- bne $14, 0, fail\n\
- li $2, 0 \n\
- .livereg 0x2000FF0E,0x00000FFF \n\
- j $31 \n\
-fail: \n\
- li $2, 1 \n\
- j $31 \n\
-");
-}
-#endif /* __mips__ && !__sgi */
-
-
#else /* not __GNUC__ */
/*