Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fadcb011
Commit
fadcb011
authored
Nov 22, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TAS code originally written for s390 (32-bit) does not work for s390x
(64-bit). Fix it. Per report from Permaine Cheung.
parent
ed24f285
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+29
-2
No files found.
src/include/storage/s_lock.h
View file @
fadcb011
...
...
@@ -63,7 +63,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: s_lock.h,v 1.10
2 2002/11/10 00:33:43 momjian
Exp $
* $Id: s_lock.h,v 1.10
3 2002/11/22 01:13:16 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -150,7 +150,8 @@ tas(volatile slock_t *lock)
#endif
/* __arm__ */
#if defined(__s390__) || defined(__s390x__)
#if defined(__s390__) && !defined(__s390x__)
/*
* S/390 Linux
*/
...
...
@@ -176,6 +177,32 @@ tas(volatile slock_t *lock)
#endif
/* __s390__ */
#if defined(__s390x__)
/*
* S/390x Linux (64-bit zSeries)
*/
#define TAS(lock) tas(lock)
static
__inline__
int
tas
(
volatile
slock_t
*
lock
)
{
int
_res
;
__asm__
__volatile__
(
" la 1,1
\n
"
" lg 2,%2
\n
"
" slr 0,0
\n
"
" cs 0,1,0(2)
\n
"
" lr %1,0
\n
"
:
"=m"
(
lock
),
"=d"
(
_res
)
:
"m"
(
lock
)
:
"0"
,
"1"
,
"2"
);
return
(
_res
);
}
#endif
/* __s390x__ */
#if defined(__sparc__)
#define TAS(lock) tas(lock)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment