aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-29 00:41:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-29 00:41:44 +0000
commit846ed05de63712fed24fd51043bc308bcd3c2478 (patch)
treed352d67b651044c44d748b0a20673576924b3716 /src
parent9f70dce4cef73a8dce009428f787d9c339c5c10e (diff)
downloadpostgresql-846ed05de63712fed24fd51043bc308bcd3c2478.tar.gz
postgresql-846ed05de63712fed24fd51043bc308bcd3c2478.zip
Sigh, looks like you need '.set mips2' before you can access MIPS
SYNC instruction.
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/s_lock.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index 6b753bd3c66..0c2dff025f0 100644
--- a/src/include/storage/s_lock.h
+++ b/src/include/storage/s_lock.h
@@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.133.4.4 2005/08/28 18:26:07 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.133.4.5 2005/08/29 00:41:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -475,8 +475,14 @@ tas(volatile slock_t *lock)
/* MIPS S_UNLOCK is almost standard but requires a "sync" instruction */
#define S_UNLOCK(lock) \
do \
-{\
- __asm__ __volatile__ (" sync \n"); \
+{ \
+ __asm__ __volatile__( \
+ " .set push \n" \
+ " .set mips2 \n" \
+ " .set noreorder \n" \
+ " .set nomacro \n" \
+ " sync \n" \
+ " .set pop "); \
*((volatile slock_t *) (lock)) = 0; \
} while (0)