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
12af9cdf
Commit
12af9cdf
authored
Dec 30, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for Solaris x86_64 using Sun's compiler.
Pierre Girard
parent
c876d965
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
6 deletions
+49
-6
src/Makefile.shlib
src/Makefile.shlib
+2
-2
src/backend/port/tas/solaris_x86_64.s
src/backend/port/tas/solaris_x86_64.s
+35
-0
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+3
-2
src/template/solaris
src/template/solaris
+9
-2
No files found.
src/Makefile.shlib
View file @
12af9cdf
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.10
0 2005/12/09 21:19:34 petere
Exp $
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.10
1 2005/12/30 21:43:41 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -193,7 +193,7 @@ ifeq ($(PORTNAME), solaris)
ifeq
($(GCC), yes)
LINK.shared
=
$(CC)
-shared
else
LINK.shared
=
$(CC)
-G
LINK.shared
=
$(CC)
-G
$(CFLAGS)
# CFLAGS added for X86_64
endif
ifeq
($(with_gnu_ld), yes)
LINK.shared
+=
-Wl
,-soname,
$(soname)
...
...
src/backend/port/tas/solaris_x86_64.s
0 → 100644
View file @
12af9cdf
/=============================================================================
/
tas.s
--
test
and
set
lock
for
solaris_i386
/
based
on
i386
ASM
with
modifications
outlined
in
/
http
://
www.x86
-64.
org
/
documentation
/
assembly
/=============================================================================
.
file
"tas.s"
.
text
.
align
16
.
L1
.
text
:
.
globl
tas
tas
:
pushq
%
rbp
/
save
prev
base
pointer
movq
%
rsp
,%
rbp
/
new
base
pointer
pushq
%
rbx
/
save
prev
bx
movq
8
(%
rbp
),%
rbx
/
load
bx
with
address
of
lock
movq
$
255
,%
rax
/
put
something
in
ax
xchgb
%
al
,(%
rbx
)
/
swap
lock
value
with
"0"
cmpb
$
0
,%
al
/
did
we
get
the
lock
?
jne
.
Locked
subq
%
rax
,%
rax
/
yes
,
we
got
it
--
return
0
jmp
.
Finish
.
align
8
.
Locked
:
movq
$
1
,%
rax
/
no
,
we
didn
't get it - return 1
.
Finish
:
popq
%
rbx
/
restore
prev
bx
movq
%
rbp
,%
rsp
/
restore
stack
state
popq
%
rbp
ret
/
return
.
align
8
.
type
tas
,
@
function
.
size
tas
,
.
-
tas
src/include/storage/s_lock.h
View file @
12af9cdf
...
...
@@ -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
5 2005/12/17 21:08:24
momjian Exp $
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.14
6 2005/12/30 21:43:41
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -791,7 +791,8 @@ typedef unsigned char slock_t;
/* out-of-line assembler from src/backend/port/tas/foo.s */
#if defined(__sun) && defined(__i386)
/* i386 using Sun compiler */
/* i386/X86_64 using Sun compiler */
#if defined(__sun) && (defined(__i386) || defined(__x86_64__))
/*
* Solaris/386 (we only get here for non-gcc case)
*/
...
...
src/template/solaris
View file @
12af9cdf
...
...
@@ -17,8 +17,15 @@ case $host in
;;
i?86-*-solaris*)
if test "$GCC" != yes ; then
need_tas=yes
tas_file=solaris_i386.s
soarch=`isainfo`
if isainfo | grep amd64
then
need_tas=yes
tas_file=solaris_x86_64.s
else
need_tas=yes
tas_file=solaris_i386.s
fi
fi
;;
esac
...
...
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