Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
08a5901b
Commit
08a5901b
authored
28 years ago
by
Marc G. Fournier
Browse files
Options
Downloads
Patches
Plain Diff
Various patches not commited, plus a linux/sparc patch from
Satoshi Ishikawa <power@sekine.densi.gifu-u.ac.jp>
parent
7a7a9b1a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/storage/ipc/s_lock.c
+34
-1
34 additions, 1 deletion
src/backend/storage/ipc/s_lock.c
src/include/port/linux.h
+3
-0
3 additions, 0 deletions
src/include/port/linux.h
with
37 additions
and
1 deletion
src/backend/storage/ipc/s_lock.c
+
34
−
1
View file @
08a5901b
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.1
2
1997/0
3/12 21:06:48
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.1
3
1997/0
4/24 02:35:35
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -453,4 +453,37 @@ S_INIT_LOCK(slock_t *lock)
#endif
#if defined(linux) && defined(sparc)
int
tas
(
slock_t
*
m
)
{
slock_t
res
;
__asm__
(
"ldstub [%1], %0"
:
"=&r"
(
res
)
:
"r"
(
m
));
return
(
res
!=
0
);
}
void
S_LOCK
(
slock_t
*
lock
)
{
while
(
tas
(
lock
))
;
}
void
S_UNLOCK
(
slock_t
*
lock
)
{
*
lock
=
0
;
}
void
S_INIT_LOCK
(
slock_t
*
lock
)
{
S_UNLOCK
(
lock
);
}
#endif
/* defined(linux) && defined(sparc) */
#endif
/* HAS_TEST_AND_SET */
This diff is collapsed.
Click to expand it.
src/include/port/linux.h
+
3
−
0
View file @
08a5901b
...
...
@@ -12,3 +12,6 @@
# define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
# endif
# if defined(sparc)
# undef NEED_I386_TAS_ASM
# endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment