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
70cab220
Commit
70cab220
authored
Dec 17, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ASM comments.
parent
25af534e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+13
-12
No files found.
src/include/storage/s_lock.h
View file @
70cab220
...
...
@@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.14
2 2005/10/11 20:41:32 tgl
Exp $
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.14
3 2005/12/17 20:15:43 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -108,7 +108,7 @@
*/
#ifdef __i386__
#ifdef __i386__
/* 32-bit i386 */
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -214,8 +214,7 @@ spin_delay(void)
#endif
/* __x86_64__ */
#if defined(__ia64__) || defined(__ia64)
/* Intel Itanium */
#if defined(__ia64__) || defined(__ia64)
/* Intel Itanium */
#define HAS_TEST_AND_SET
typedef
unsigned
int
slock_t
;
...
...
@@ -276,8 +275,8 @@ tas(volatile slock_t *lock)
#endif
/* __arm__ */
#if defined(__s390__) || defined(__s390x__)
/* S/390 and S/390x Linux (32- and 64-bit zSeries) */
#if defined(__s390__) || defined(__s390x__)
#define HAS_TEST_AND_SET
typedef
unsigned
int
slock_t
;
...
...
@@ -300,7 +299,7 @@ tas(volatile slock_t *lock)
#endif
/* __s390__ || __s390x__ */
#if defined(__sparc__)
#if defined(__sparc__)
/* Sparc */
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -323,6 +322,7 @@ tas(volatile slock_t *lock)
#endif
/* __sparc__ */
/* PowerPC */
#if defined(__ppc__) || defined(__powerpc__) || defined(__powerpc64__)
#define HAS_TEST_AND_SET
...
...
@@ -366,7 +366,7 @@ tas(volatile slock_t *lock)
/* PowerPC S_UNLOCK is almost standard but requires a "sync" instruction */
#define S_UNLOCK(lock) \
do \
{\
{
\
__asm__ __volatile__ (" sync \n"); \
*((volatile slock_t *) (lock)) = 0; \
} while (0)
...
...
@@ -374,6 +374,7 @@ do \
#endif
/* powerpc */
/* Linux Motorola 68k */
#if (defined(__mc68000__) || defined(__m68k__)) && defined(__linux__)
#define HAS_TEST_AND_SET
...
...
@@ -399,11 +400,11 @@ tas(volatile slock_t *lock)
#endif
/* (__mc68000__ || __m68k__) && __linux__ */
#if defined(__vax__)
/*
* VAXen -- even multiprocessor ones
* (thanks to Tom Ivar Helbekkmo)
*/
#if defined(__vax__)
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -429,7 +430,7 @@ tas(volatile slock_t *lock)
#endif
/* __vax__ */
#if defined(__ns32k__)
#if defined(__ns32k__)
/* National Semiconductor 32K */
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -453,7 +454,7 @@ tas(volatile slock_t *lock)
#endif
/* __ns32k__ */
#if defined(__alpha) || defined(__alpha__)
#if defined(__alpha) || defined(__alpha__)
/* Alpha */
/*
* Correct multi-processor locking methods are explained in section 5.5.3
* of the Alpha AXP Architecture Handbook, which at this writing can be
...
...
@@ -499,7 +500,7 @@ do \
#endif
/* __alpha || __alpha__ */
#if defined(__mips__) && !defined(__sgi)
#if defined(__mips__) && !defined(__sgi)
/* non-SGI MIPS */
/* Note: on SGI we use the OS' mutex ABI, see below */
/* Note: R10000 processors require a separate SYNC */
#define HAS_TEST_AND_SET
...
...
@@ -553,7 +554,7 @@ do \
/* These live in s_lock.c, but only for gcc */
#if defined(__m68k__) && !defined(__linux__)
#if defined(__m68k__) && !defined(__linux__)
/* non-Linux Motorola 68k */
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
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