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
8d988c7d
Commit
8d988c7d
authored
May 18, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow sparcv8plus to use "cas".
Theo Schlossnagle
parent
d8f940f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
src/backend/port/tas/solaris_sparc.s
src/backend/port/tas/solaris_sparc.s
+9
-10
No files found.
src/backend/port/tas/solaris_sparc.s
View file @
8d988c7d
...
@@ -16,21 +16,20 @@
...
@@ -16,21 +16,20 @@
.
global
pg_atomic_cas
.
global
pg_atomic_cas
pg_atomic_cas
:
pg_atomic_cas
:
!
"cas"
only
works
on
sparcv9
chips
,
and
requies
a
compiler
!
"cas"
only
works
on
sparcv9
and
sparcv8plus
chips
,
and
!
that
is
targeting
sparcv9
.
It
will
fail
on
a
compiler
!
requies
a
compiler
targeting
these
CPUs
.
It
will
fail
!
targeting
sparcv8
,
and
of
course
will
not
be
understood
!
on
a
compiler
targeting
sparcv8
,
and
of
course
will
not
!
b
y
a
sparcv8
CPU
.
gcc
continues
to
use
"ldstub"
beca
use
!
b
e
understood
by
a
sparcv8
CPU
.
gcc
continues
to
use
!
there
is
no
indication
which
sparc
version
it
is
targeting
.
!
"ldstub"
because
it
targets
sparcv7
.
!
!
!
It
is
actually
possible
to
use
"cas"
for
sparcv8
binaries
if
!
There
is
actually
a
trick
for
embedding
"cas"
in
a
!
-
xarch
=
v8plus
is
used
for
compilation
.
There
is
actually
a
!
sparcv8
-
targeted
compiler
,
but
it
can
only
be
run
!
trick
for
embedding
"cas"
in
a
sparcv8
-
targeted
compiler
,
but
!
on
a
sparcv8plus
/
v9
cpus
:
!
it
can
only
be
run
on
a
sparcv8plus
cpus
:
!
!
!
http
:
//
cvs
.
opensolaris
.
org
/
source
/
xref
/
on
/
usr
/
src
/
lib
/
libc
/
sparc
/
threads
/
sparc
.
il
!
http
:
//
cvs
.
opensolaris
.
org
/
source
/
xref
/
on
/
usr
/
src
/
lib
/
libc
/
sparc
/
threads
/
sparc
.
il
!
!
#if
def __sparcv9
#if
defined(__sparcv9) || defined(__sparcv8plus)
cas
[%
o0
],%
o2
,%
o1
cas
[%
o0
],%
o2
,%
o1
#else
#else
ldstub
[%
o0
],%
o1
ldstub
[%
o0
],%
o1
...
...
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