|
66 | 66 | * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
67 | 67 | * Portions Copyright (c) 1994, Regents of the University of California
|
68 | 68 | *
|
69 |
| - * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.139 2005/08/28 18:26:01 tgl Exp $ |
| 69 | + * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.140 2005/08/29 00:41:34 tgl Exp $ |
70 | 70 | *
|
71 | 71 | *-------------------------------------------------------------------------
|
72 | 72 | */
|
@@ -490,8 +490,14 @@ tas(volatile slock_t *lock)
|
490 | 490 | /* MIPS S_UNLOCK is almost standard but requires a "sync" instruction */
|
491 | 491 | #defineS_UNLOCK(lock)\
|
492 | 492 | do \
|
493 |
| -{\ |
494 |
| -__asm__ __volatile__ ("sync \n"); \ |
| 493 | +{ \ |
| 494 | +__asm__ __volatile__( \ |
| 495 | +" .set push \n" \ |
| 496 | +" .set mips2 \n" \ |
| 497 | +" .set noreorder \n" \ |
| 498 | +" .set nomacro \n" \ |
| 499 | +" sync \n" \ |
| 500 | +" .set pop "); \ |
495 | 501 | *((volatile slock_t *) (lock)) = 0; \
|
496 | 502 | } while (0)
|
497 | 503 |
|
|