aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-09-12 15:49:34 +0000
committerBruce Momjian <bruce@momjian.us>2003-09-12 15:49:34 +0000
commit69a46e9ce1f80056f5b72aaa80b29821bdf821c1 (patch)
tree237517dad117c7d52f20f277a6a99932da0bfe76 /src
parent9182481bea3b72eb7ea60d8fcc0b0c6ccd179fc5 (diff)
downloadpostgresql-69a46e9ce1f80056f5b72aaa80b29821bdf821c1.tar.gz
postgresql-69a46e9ce1f80056f5b72aaa80b29821bdf821c1.zip
Enable Opteron/Itanium spinlocks.
Diffstat (limited to 'src')
-rw-r--r--src/include/port/bsdi.h8
-rw-r--r--src/include/port/freebsd.h7
-rw-r--r--src/include/port/netbsd.h7
-rw-r--r--src/include/port/openbsd.h7
-rw-r--r--src/include/port/sco.h5
-rw-r--r--src/include/port/univel.h5
-rw-r--r--src/include/port/unixware.h5
7 files changed, 39 insertions, 5 deletions
diff --git a/src/include/port/bsdi.h b/src/include/port/bsdi.h
index f4865361132..c1ec729d81f 100644
--- a/src/include/port/bsdi.h
+++ b/src/include/port/bsdi.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;
diff --git a/src/include/port/freebsd.h b/src/include/port/freebsd.h
index 7729fa5b9bb..386584e9a31 100644
--- a/src/include/port/freebsd.h
+++ b/src/include/port/freebsd.h
@@ -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
diff --git a/src/include/port/netbsd.h b/src/include/port/netbsd.h
index 7729fa5b9bb..386584e9a31 100644
--- a/src/include/port/netbsd.h
+++ b/src/include/port/netbsd.h
@@ -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
diff --git a/src/include/port/openbsd.h b/src/include/port/openbsd.h
index 7729fa5b9bb..386584e9a31 100644
--- a/src/include/port/openbsd.h
+++ b/src/include/port/openbsd.h
@@ -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
diff --git a/src/include/port/sco.h b/src/include/port/sco.h
index 7aa2370443e..b4f1e306057 100644
--- a/src/include/port/sco.h
+++ b/src/include/port/sco.h
@@ -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
diff --git a/src/include/port/univel.h b/src/include/port/univel.h
index 16c85b9fa4c..b81fbc47b19 100644
--- a/src/include/port/univel.h
+++ b/src/include/port/univel.h
@@ -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
diff --git a/src/include/port/unixware.h b/src/include/port/unixware.h
index da02084c697..734c2ef0fa7 100644
--- a/src/include/port/unixware.h
+++ b/src/include/port/unixware.h
@@ -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