summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-10-24 15:01:23 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-10-24 15:01:23 -0500
commitcb5035400c0036f5df75681c189242d400423724 (patch)
tree78b2fb35add8337f83923193f11be68df065e885
parentkern_time: Disable some routines RTEMS has (diff)
downloadrtems-libbsd-cb5035400c0036f5df75681c189242d400423724.tar.bz2
_sx_xlock(): Added check for not in interrupt.
-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);