From 0389b30dd928dbebb138f6b98b214380ddcb2289 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 15 Jan 2019 15:35:11 +0100 Subject: Fix INVARIANTS support --- freebsd/sys/sys/sx.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'freebsd/sys/sys/sx.h') 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) \ -- cgit v1.2.3