]> granicus.if.org Git - postgresql/commitdiff
Enable Opteron/Itanium spinlocks.
authorBruce Momjian <bruce@momjian.us>
Fri, 12 Sep 2003 15:49:34 +0000 (15:49 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 12 Sep 2003 15:49:34 +0000 (15:49 +0000)
src/include/port/bsdi.h
src/include/port/freebsd.h
src/include/port/netbsd.h
src/include/port/openbsd.h
src/include/port/sco.h
src/include/port/univel.h
src/include/port/unixware.h

index f4865361132a605720c77c20a443b6f22da98403..c1ec729d81f6e9851c7ad03c1bb7e31c7dcaaa30 100644 (file)
@@ -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;
index 7729fa5b9bb306e61d68bdf39bf25abd816f9620..386584e9a31ea16630df5a0dc93ee0bfb2b67aff 100644 (file)
@@ -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
index 7729fa5b9bb306e61d68bdf39bf25abd816f9620..386584e9a31ea16630df5a0dc93ee0bfb2b67aff 100644 (file)
@@ -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
index 7729fa5b9bb306e61d68bdf39bf25abd816f9620..386584e9a31ea16630df5a0dc93ee0bfb2b67aff 100644 (file)
@@ -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
index 7aa2370443e3d8a59ee268bad5180eb9d1d22a1c..b4f1e30605709c1913b208fc32ade887c4802806 100644 (file)
@@ -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
index 16c85b9fa4cb36e979bb8f248a51bf451520a253..b81fbc47b193d6e29f1e7c50362f95bd7798b86f 100644 (file)
@@ -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
index da02084c6974c8acdc819e79739cbcc4e25dddc9..734c2ef0fa7cfb5c22c5048a6e33a12968ff289c 100644 (file)
  ***************************************/
 #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