Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5042985

Browse files
committed
Add s_lock support for HPUX on IA64, per Shinji Teragaito.
1 parent e00896f commit 5042985

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/include/storage/s_lock.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
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 $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -541,6 +541,18 @@ tas(volatile slock_t *lock)
541541
#endif /* __hppa || __hppa__ */
542542

543543

544+
#if defined(__hpux) && defined(__ia64) && !defined(__GNUC__)
545+
546+
#define HAS_TEST_AND_SET
547+
548+
typedef unsigned int slock_t;
549+
550+
#include <ia64/sys/inline.h>
551+
#define TAS(lock) _Asm_xchg(_SZ_W, lock, 1, _LDHINT_NONE)
552+
553+
#endif /* HPUX on IA64, non gcc */
554+
555+
544556
#if defined(__QNX__) && defined(__WATCOMC__)
545557
/*
546558
* QNX 4 using WATCOM C

0 commit comments

Comments
 (0)