Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5042985

Browse files
committed
Add s_lock support for HPUX on IA64, per Shinji Teragaito.
1 parente00896f commit5042985

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎src/include/storage/s_lock.h

Lines changed: 13 additions & 1 deletion
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+
#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+
544556
#if defined(__QNX__)&& defined(__WATCOMC__)
545557
/*
546558
* QNX 4 using WATCOM C

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp