mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Sigh, looks like you need '.set mips2' before you can access MIPS
SYNC instruction.
This commit is contained in:
parent
46a0eee300
commit
2d03390945
@ -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.139 2005/08/28 18:26:01 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.140 2005/08/29 00:41:34 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -490,8 +490,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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user