$OpenBSD: patch-src_include_storage_s_lock_h,v 1.1.1.1 2016/12/18 18:13:25 jeremy Exp $
--- src/include/storage/s_lock.h.orig	Mon Feb  8 21:15:19 2016
+++ src/include/storage/s_lock.h	Fri Feb 12 17:18:09 2016
@@ -749,6 +749,29 @@ typedef unsigned char slock_t;
 #endif
 
 
+#if defined(__m88k__)		/* Motorola 88k */
+#define HAS_TEST_AND_SET
+
+typedef unsigned int slock_t;
+
+#define TAS(lock) tas(lock)
+
+static __inline__ int
+tas(volatile slock_t *lock)
+{
+	register slock_t _res = 1;
+
+	__asm__ __volatile__(
+		"	xmem	%0, %2, %%r0\n"
+:		"=r"(_res)
+:		"0" (_res), "r"(lock)
+:		"memory");
+	return (int) _res;
+}
+
+#endif	 /* __m88k__ */
+
+
 #endif	/* defined(__GNUC__) || defined(__INTEL_COMPILER) */
 
 
