Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8d5f02

Browse files
committed
I have ported PostgreSQL 6.4 to Cobalt Qube running Linux 2.0.33 with
MIPS cpu (I think it's R4000). I have tested the patches on LinuxPPCand FreeBSD. I believe they do not harm other platforms.--Tatsuo Ishii
1 parentc0d816c commitb8d5f02

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

‎src/backend/storage/buffer/s_lock.c

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.13 1998/12/15 12:46:21 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.14 1998/12/18 17:25:39 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -124,7 +124,28 @@ success:\n\
124124

125125
#endif/* PPC */
126126

127-
127+
#if defined(__mips)
128+
staticvoid
129+
tas_dummy()
130+
{
131+
__asm__("\n\
132+
.globaltas\n\
133+
tas:\n\
134+
.frame$sp, 0, $31\n\
135+
ll$14, 0($4)\n\
136+
or$15, $14, 1\n\
137+
sc$15, 0($4)\n\
138+
beq$15, 0, fail\n\
139+
bne$14, 0, fail\n\
140+
li$2, 0\n\
141+
.livereg 0x2000FF0E,0x00000FFF\n\
142+
j $31\n\
143+
fail:\n\
144+
li$2, 1\n\
145+
j $31\n\
146+
");
147+
}
148+
#endif/* __mips */
128149

129150
#else/* defined(__GNUC__) */
130151
/***************************************************************************

‎src/include/port/linux.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ typedef unsigned int slock_t;
1414
#elif defined(__alpha)
1515
typedeflongintslock_t;
1616

17+
#elif defined(__mips)
18+
typedefunsignedintslock_t;
19+
1720
#else/* i386 probably */
1821
typedefunsignedcharslock_t;
1922

‎src/template/.similar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ sparc-sun-solaris=solaris_sparc_gcc
2626
sparc-sun-sunos4=sunos4_gcc
2727
sparc-sun-sunos5=solaris_sparc_gcc
2828
sparc-unknown-linux-gnu=linux_sparc
29+
mips-pc-linux-gnu=linux_mips

‎src/template/linux_mips

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
AROPT:crs
2+
CFLAGS:-O2 -mips2
3+
SHARED_LIB:-fpic
4+
ALL:
5+
SRCH_INC:
6+
SRCH_LIB:
7+
USE_LOCALE:no
8+
DLSUFFIX:.so
9+
YFLAGS:-d
10+
YACC:bison -y

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp