summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-15 15:35:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-22 13:14:33 +0100
commit0389b30dd928dbebb138f6b98b214380ddcb2289 (patch)
treedb528f895149bf006530661d73c91b9390676a9f /freebsd/sys/sys
parentdpaa: Use if_transmit instead of legacy if_start (diff)
downloadrtems-libbsd-0389b30dd928dbebb138f6b98b214380ddcb2289.tar.bz2
Fix INVARIANTS support
Diffstat (limited to 'freebsd/sys/sys')
-rw-r--r--freebsd/sys/sys/sx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/sx.h b/freebsd/sys/sys/sx.h
index 9e0da83a..4361e10c 100644
--- a/freebsd/sys/sys/sx.h
+++ b/freebsd/sys/sys/sx.h
@@ -235,8 +235,13 @@ __sx_xunlock(struct sx *sx, struct thread *td, const char *file, int line)
__sx_xunlock((sx), curthread, (file), (line))
#endif /* LOCK_DEBUG > 0 || SX_NOINLINE */
#if (LOCK_DEBUG > 0)
+#ifndef __rtems__
#define sx_slock_(sx, file, line) \
(void)_sx_slock((sx), 0, (file), (line))
+#else /* __rtems__ */
+#define sx_slock_(sx, file, line) \
+ (void)_sx_xlock((sx), 0, (file), (line))
+#endif /* __rtems__ */
#define sx_slock_sig_(sx, file, line) \
_sx_slock((sx), SX_INTERRUPTIBLE, (file) , (line))
#define sx_sunlock_(sx, file, line) \