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
33554989
Commit
33554989
authored
Sep 18, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for NS32K machine.
parent
0498b6a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
src/backend/storage/buffer/s_lock.c
src/backend/storage/buffer/s_lock.c
+12
-1
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+2
-17
No files found.
src/backend/storage/buffer/s_lock.c
View file @
33554989
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.1
0 1998/09/03 02:14:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.1
1 1998/09/18 05:36:23
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -118,6 +118,17 @@ success: \n\
...
@@ -118,6 +118,17 @@ success: \n\
#endif
/* PPC */
#endif
/* PPC */
#if defined(__ns32k__)
int
tas
(
volatile
slock_t
*
lock
)
{
int
res
;
__asm__
(
"sbitb 0, %0"
:
"=m"
(
*
lock
));
__asm__
(
"sprb us, %0"
:
"=r"
(
res
));
res
=
(
res
>>
5
)
&
1
;
return
res
;
}
#endif
#else
/* defined(__GNUC__) */
#else
/* defined(__GNUC__) */
/***************************************************************************
/***************************************************************************
...
...
src/include/storage/s_lock.h
View file @
33554989
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.4
7 1998/09/12 16:07:53
momjian Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.4
8 1998/09/18 05:36:24
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -213,22 +213,7 @@ tas(slock_t *s_lock)
...
@@ -213,22 +213,7 @@ tas(slock_t *s_lock)
#endif
/* NEED_I386_TAS_ASM */
#endif
/* NEED_I386_TAS_ASM */
/* NS32K code is in s_lock.c */
#if defined(NEED_NS32K_TAS_ASM)
#define S_LOCK(lock) \
{ \
slock_t res = 1; \
while (res) { \
__asm__("movqd 0, r0"); \
__asm__("sbitd r0, %0" : "=m"(*lock)); \
__asm__("sprb us, %0" : "=r" (res)); \
res = ((res >> 5) & 1); \
} \
}
#endif
/* NEED_NS32K_TAS_ASM */
#endif
/* defined(__GNUC__) */
#endif
/* defined(__GNUC__) */
...
...
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