Enable Opteron/Itanium spinlocks.

REL7_4_STABLE
Bruce Momjian 22 years ago
parent 9182481bea
commit 69a46e9ce1
  1. 8
      src/include/port/bsdi.h
  2. 7
      src/include/port/freebsd.h
  3. 7
      src/include/port/netbsd.h
  4. 7
      src/include/port/openbsd.h
  5. 5
      src/include/port/sco.h
  6. 5
      src/include/port/univel.h
  7. 5
      src/include/port/unixware.h

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

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

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

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

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

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

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

Loading…
Cancel
Save