Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
050371fc
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
050371fc
编写于
7月 13, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More cpu cleanups, only for 6.6.
上级
540c1142
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
32 addition
and
27 deletion
+32
-27
src/backend/main/main.c
src/backend/main/main.c
+4
-4
src/backend/storage/buffer/s_lock.c
src/backend/storage/buffer/s_lock.c
+3
-3
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+2
-2
src/include/port/bsd.h
src/include/port/bsd.h
+8
-7
src/include/port/bsdi.h
src/include/port/bsdi.h
+2
-0
src/include/port/freebsd.h
src/include/port/freebsd.h
+1
-0
src/include/port/linux.h
src/include/port/linux.h
+6
-6
src/include/port/univel.h
src/include/port/univel.h
+1
-0
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+5
-5
未找到文件。
src/backend/main/main.c
浏览文件 @
050371fc
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.2
3 1999/02/13 23:15:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.2
4 1999/07/13 20:12:46
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,7 +15,7 @@
#include <string.h>
#include <unistd.h>
#if defined(__alpha) && !defined(linux)
#if defined(__alpha
__
) && !defined(linux)
#include <sys/sysinfo.h>
#include <machine/hal_sysinfo.h>
#define ASSEMBLER
...
...
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
{
int
len
;
#if defined(__alpha)
#if defined(__alpha
__
)
#ifdef NOFIXADE
int
buffer
[]
=
{
SSIN_UACPROC
,
UAC_SIGBUS
};
...
...
@@ -69,7 +69,7 @@ main(int argc, char *argv[])
syscall
(
SYS_sysmips
,
MIPS_FIXADE
,
0
,
NULL
,
NULL
,
NULL
);
#endif
#if defined(__alpha)
#if defined(__alpha
__
)
if
(
setsysinfo
(
SSI_NVPAIRS
,
buffer
,
1
,
(
caddr_t
)
NULL
,
(
unsigned
long
)
NULL
)
<
0
)
elog
(
NOTICE
,
"setsysinfo failed: %d
\n
"
,
errno
);
...
...
src/backend/storage/buffer/s_lock.c
浏览文件 @
050371fc
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.2
1 1999/06/06 20:19:35 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.2
2 1999/07/13 20:12:46 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -143,7 +143,7 @@ success: \n\
#endif
/* __powerpc__ */
#if defined(__mips)
#if defined(__mips
__
)
static
void
tas_dummy
()
{
...
...
@@ -165,7 +165,7 @@ fail: \n\
"
);
}
#endif
/* __mips */
#endif
/* __mips
__
*/
#else
/* defined(__GNUC__) */
/***************************************************************************
...
...
src/backend/utils/adt/float.c
浏览文件 @
050371fc
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.4
2 1999/05/25 16:12:02
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.4
3 1999/07/13 20:12:47
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -134,7 +134,7 @@ extern double rint(double x);
* until the distributions are updated.
* --djm 12/16/96
*/
#if ( defined(linux) && defined(__alpha) ) && !defined(UNSAFE_FLOATS)
#if ( defined(linux) && defined(__alpha
__
) ) && !defined(UNSAFE_FLOATS)
#define UNSAFE_FLOATS
#endif
...
...
src/include/port/bsd.h
浏览文件 @
050371fc
...
...
@@ -28,15 +28,16 @@
#define HAS_TEST_AND_SET
#endif
#if defined(__powerpc__)
#define HAS_TEST_AND_SET
typedef
unsigned
int
slock_t
;
#endif
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
#if !defined(__powerpc__)
typedef
unsigned
char
slock_t
;
#if defined(__powerpc__)
#define HAS_TEST_AND_SET
#endif
#if defined(__powerpc__)
typedef
unsigned
int
slock_t
;
#else
typedef
unsigned
char
slock_t
;
#endif
src/include/port/bsdi.h
浏览文件 @
050371fc
...
...
@@ -4,6 +4,8 @@
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#endif
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
src/include/port/freebsd.h
浏览文件 @
050371fc
...
...
@@ -27,4 +27,5 @@
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
typedef
unsigned
char
slock_t
;
src/include/port/linux.h
浏览文件 @
050371fc
...
...
@@ -8,18 +8,18 @@
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
#if defined(__powerpc__)
#if if defined(__i386__)
typedef
unsigned
char
slock_t
;
#elif defined(__powerpc__)
typedef
unsigned
int
slock_t
;
#elif defined(__alpha)
#elif defined(__alpha
__
)
typedef
long
int
slock_t
;
#elif defined(__mips)
#elif defined(__mips
__
)
typedef
unsigned
int
slock_t
;
#else
/* i386 probably */
typedef
unsigned
char
slock_t
;
#endif
#if (__GLIBC__ >= 2)
...
...
src/include/port/univel.h
浏览文件 @
050371fc
...
...
@@ -4,6 +4,7 @@
#define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM
/***************************************
* Define this if you are compiling with
* the native UNIXWARE C compiler.
...
...
src/include/storage/s_lock.h
浏览文件 @
050371fc
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.6
2 1999/07/13 20:00:36
momjian Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.6
3 1999/07/13 20:12:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -78,7 +78,7 @@ extern void s_lock_sleep(unsigned spin);
* All the gcc inlines
*/
#if defined(__alpha)
#if defined(__alpha
__
)
#define TAS(lock) tas(lock)
#define S_UNLOCK(lock) { __asm__("mb"); *(lock) = 0; }
...
...
@@ -104,7 +104,7 @@ __asm__(" ldq $0, %0 \n\
return
(
int
)
_res
;
}
#endif
/* __alpha */
#endif
/* __alpha
__
*/
...
...
@@ -226,7 +226,7 @@ tas(volatile slock_t *lock)
* All non gcc
*/
#if defined(__alpha)
#if defined(__alpha
__
)
/*
* OSF/1 (Alpha AXP)
*
...
...
@@ -237,7 +237,7 @@ tas(volatile slock_t *lock)
#define S_UNLOCK(lock) msem_unlock((lock), 0)
#define S_INIT_LOCK(lock) msem_init((lock), MSEM_UNLOCKED)
#define S_LOCK_FREE(lock) (!(lock)->msem_state)
#endif
/* __alpha */
#endif
/* __alpha
__
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录