|
66 | 66 | * Portions Copyright (c) 1996-2004, 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.128 2004/08/30 22:49:07 tgl Exp $ |
| 69 | + * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.129 2004/09/02 17:10:58 tgl Exp $ |
70 | 70 | *
|
71 | 71 | *-------------------------------------------------------------------------
|
72 | 72 | */
|
@@ -541,6 +541,18 @@ tas(volatile slock_t *lock)
|
541 | 541 | #endif/* __hppa || __hppa__ */
|
542 | 542 |
|
543 | 543 |
|
| 544 | +#if defined(__hpux)&& defined(__ia64)&& !defined(__GNUC__) |
| 545 | + |
| 546 | +#defineHAS_TEST_AND_SET |
| 547 | + |
| 548 | +typedefunsignedintslock_t; |
| 549 | + |
| 550 | +#include<ia64/sys/inline.h> |
| 551 | +#defineTAS(lock) _Asm_xchg(_SZ_W, lock, 1, _LDHINT_NONE) |
| 552 | + |
| 553 | +#endif/* HPUX on IA64, non gcc */ |
| 554 | + |
| 555 | + |
544 | 556 | #if defined(__QNX__)&& defined(__WATCOMC__)
|
545 | 557 | /*
|
546 | 558 | * QNX 4 using WATCOM C
|
|