1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Enable Opteron/Itanium spinlocks.

This commit is contained in:
Bruce Momjian
2003-09-12 15:49:34 +00:00
parent 9182481bea
commit 69a46e9ce1
7 changed files with 39 additions and 5 deletions

View File

@ -1,10 +1,14 @@
#if defined(__i386__) #if defined(__i386__) || defined(__x86_64__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
typedef unsigned char slock_t;
#endif
#if defined(__ia64)
typedef unsigned int slock_t;
#endif #endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
typedef unsigned char slock_t;
#endif #endif
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t;

View File

@ -1,9 +1,14 @@
#if defined(__i386__) #if defined(__i386__) || defined(__x86_64__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
#if defined(__ia64)
#define HAS_TEST_AND_SET
typedef unsigned int slock_t;
#endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET

View File

@ -1,9 +1,14 @@
#if defined(__i386__) #if defined(__i386__) || defined(__x86_64__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
#if defined(__ia64)
#define HAS_TEST_AND_SET
typedef unsigned int slock_t;
#endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET

View File

@ -1,9 +1,14 @@
#if defined(__i386__) #if defined(__i386__) || defined(__x86_64__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
#if defined(__ia64)
#define HAS_TEST_AND_SET
typedef unsigned int slock_t;
#endif
#if defined(__sparc__) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET

View File

@ -6,7 +6,12 @@
#define USE_UNIVEL_CC #define USE_UNIVEL_CC
#if defined(__ia64)
typedef unsigned int slock_t;
#else
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif
#ifndef BIG_ENDIAN #ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321 #define BIG_ENDIAN 4321

View File

@ -7,7 +7,12 @@
***************************************/ ***************************************/
#define USE_UNIVEL_CC #define USE_UNIVEL_CC
#if defined(__ia64)
typedef unsigned int slock_t;
#else
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif
#ifndef BIG_ENDIAN #ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321 #define BIG_ENDIAN 4321

View File

@ -10,7 +10,12 @@
***************************************/ ***************************************/
#define USE_UNIVEL_CC #define USE_UNIVEL_CC
#if defined(__ia64)
typedef unsigned int slock_t;
#else
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif
#ifndef BIG_ENDIAN #ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321 #define BIG_ENDIAN 4321