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
c0cd32d7
Commit
c0cd32d7
authored
Apr 13, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ARM32 support by Andrew McMurry
parent
a01dfe71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
src/include/port/bsd.h
src/include/port/bsd.h
+4
-0
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+17
-1
No files found.
src/include/port/bsd.h
View file @
c0cd32d7
...
...
@@ -24,6 +24,10 @@
#define HAS_TEST_AND_SET
#endif
#if defined(__arm32__)
#define HAS_TEST_AND_SET
#endif
#if defined(__powerpc__)
#define HAS_TEST_AND_SET
typedef
unsigned
int
slock_t
;
...
...
src/include/storage/s_lock.h
View file @
c0cd32d7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.5
8 1999/02/13 23:22:09
momjian Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.5
9 1999/04/13 17:42:26
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -124,6 +124,22 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res));
#if defined(__arm32__)
#define TAS(lock) tas(lock)
static
__inline__
int
tas
(
volatile
slock_t
*
lock
)
{
register
slock_t
_res
=
1
;
__asm__
(
"swpb %0, %0, [%3]"
:
"=r"
(
_res
),
"=m"
(
*
lock
)
:
"0"
(
_res
),
"r"
(
lock
));
return
(
int
)
_res
;
}
#endif
/* __arm32__ */
#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