diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql/patches/patch-af | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/databases/postgresql/patches/patch-af b/databases/postgresql/patches/patch-af new file mode 100644 index 00000000000..71157f7580c --- /dev/null +++ b/databases/postgresql/patches/patch-af @@ -0,0 +1,46 @@ +$NetBSD: patch-af,v 1.4 1999/05/18 15:52:19 bad Exp $ + +*** include/storage/s_lock.h Sat Apr 10 19:43:01 1999 +--- include/storage/s_lock.h Wed Apr 7 03:06:53 1999 +*************** +*** 124,129 **** +--- 124,145 ---- + + + ++ #if defined(__arm32__) ++ #define TAS(lock) tas(lock) ++ ++ static __inline__ int ++ tas(volatile slock_t *lock) ++ { ++ register slock_t _res = 1; ++ ++ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock)); ++ return (int) _res; ++ } ++ ++ #endif /* __arm32__ */ ++ ++ ++ + #if defined(sparc) + #define TAS(lock) tas(lock) + +*** include/port/bsd.h Sat Apr 10 19:43:01 1999 +--- include/port/bsd.h Wed Apr 7 03:31:22 1999 +*************** +*** 24,29 **** +--- 24,33 ---- + #define HAS_TEST_AND_SET + #endif + ++ #if defined(__arm32__) ++ #define HAS_TEST_AND_SET ++ #endif ++ + #if defined(__powerpc__) + #define HAS_TEST_AND_SET + typedef unsigned int slock_t; + + |