8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d98dc1 commit 8bd8b4bCopy full SHA for 8bd8b4b
src/include/storage/s_lock.h
@@ -571,6 +571,30 @@ tas(volatile slock_t *lock)
571
#endif /* (__mc68000__ || __m68k__) && __linux__ */
572
573
574
+/* Motorola 88k */
575
+#if defined(__m88k__)
576
+#define HAS_TEST_AND_SET
577
+
578
+typedef unsigned int slock_t;
579
580
+#define TAS(lock) tas(lock)
581
582
+static __inline__ int
583
+tas(volatile slock_t *lock)
584
+{
585
+ register slock_t _res = 1;
586
587
+ __asm__ __volatile__(
588
+ " xmem %0, %2, %%r0 \n"
589
+: "+r"(_res), "+m"(*lock)
590
+: "r"(lock)
591
+: "memory");
592
+ return (int) _res;
593
+}
594
595
+#endif /* __m88k__ */
596
597
598
/*
599
* VAXen -- even multiprocessor ones
600
* (thanks to Tom Ivar Helbekkmo)
0 commit comments