summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/src/rtems-bsd-sx.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/src/rtems-bsd-sx.c')
-rw-r--r--rtemsbsd/src/rtems-bsd-sx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemsbsd/src/rtems-bsd-sx.c b/rtemsbsd/src/rtems-bsd-sx.c
index 2b422ca9..3634d85e 100644
--- a/rtemsbsd/src/rtems-bsd-sx.c
+++ b/rtemsbsd/src/rtems-bsd-sx.c
@@ -196,7 +196,8 @@ _sx_xlock(struct sx *sx, int opts, const char *file, int line)
#warning "SX_INTERRUPTIBLE NOT SUPPORTED YET"
/* BSD_ASSERT((opts & SX_INTERRUPTIBLE) == 0); */
-
+ BSD_ASSERT(!rtems_interrupt_is_in_progress());
+
sc = rtems_semaphore_obtain( sx->lock_object.lo_id, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
BSD_ASSERT_SC(sc);