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
8a0967a3
Commit
8a0967a3
authored
Dec 30, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bring in alpha/linux s_lock changes
From: Ryan Kirkpatrick <rkirkpat@nag.cs.colorado.edu>
parent
3c1332e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
src/backend/storage/buffer/Makefile
src/backend/storage/buffer/Makefile
+2
-3
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+4
-23
No files found.
src/backend/storage/buffer/Makefile
View file @
8a0967a3
...
...
@@ -4,7 +4,7 @@
# Makefile for storage/buffer
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.
5 1997/12/20 00:27:09
scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.
6 1997/12/30 04:01:25
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -15,7 +15,7 @@ INCLUDE_OPT = -I../..
CFLAGS
+=
$(INCLUDE_OPT)
OBJS
=
buf_table.o buf_init.o bufmgr.o freelist.o localbuf.o
OBJS
=
buf_table.o buf_init.o bufmgr.o freelist.o localbuf.o
s_lock.o
all
:
SUBSYS.o
...
...
@@ -31,4 +31,3 @@ clean:
ifeq
(depend,$(wildcard depend))
include
depend
endif
src/include/storage/s_lock.h
View file @
8a0967a3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
3 1997/12/09 20:55:33 momjian
Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
4 1997/12/30 04:01:28 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -313,28 +313,9 @@ tas_dummy()
#if defined(__alpha__) && defined(linux)
#define S_LOCK(lock) do { \
slock_t _res; \
do { \
__asm__(" ldq $0, %0 \n\
bne $0, already_set%= \n\
ldq_l $0, %0 \n\
bne $0, already_set%= \n\
or $31, 1, $0 \n\
stq_c $0, %0 \n\
beq $0, stqc_fail%= \n\
success%=: \n\
bis $31, $31, %1 \n\
mb \n\
jmp $31, end%= \n\
stqc_fail%=: or $31, 1, $0 \n\
already_set%=: bis $0, $0, %1 \n\
end%=: nop ": "=m"(*lock), "=r"(_res): :"0"); \
} while (_res != 0); \
} while (0)
#define S_UNLOCK(lock) ({ __asm__("mb \n"); *(lock) = 0; })
void
S_LOCK
(
slock_t
*
lock
);
#define S_UNLOCK(lock) { __asm__("mb"); *(lock) = 0; }
#define S_INIT_LOCK(lock) S_UNLOCK(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