summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch')
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch b/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch
deleted file mode 100644
index 292c329..0000000
--- a/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
-index 23f4cc9..707c303 100644
---- a/src/include/storage/s_lock.h
-+++ b/src/include/storage/s_lock.h
-@@ -298,6 +298,29 @@ tas(volatile slock_t *lock)
-
- #endif /* __s390__ || __s390x__ */
-
-+#if defined(__sh__)
-+#define HAS_TEST_AND_SET
-+
-+typedef unsigned char slock_t;
-+
-+#define TAS(lock) tas(lock)
-+
-+static __inline__ int
-+tas(volatile slock_t *lock)
-+{
-+ register int _res = 1;
-+
-+ __asm__ __volatile__(
-+ "tas.b @%1\n\t"
-+ "movt %0\n\t"
-+ "xor #1,%0"
-+: "=z"(_res)
-+: "r"(lock)
-+: "t","memory");
-+ return _res;
-+}
-+
-+#endif /* __sh__ */
-
- #if defined(__sparc__) /* Sparc */
- #define HAS_TEST_AND_SET