_sx_xlock(): Added check for not in interrupt.

This commit is contained in:
Jennifer Averett 2012-10-24 15:01:23 -05:00
parent d4515a8d0e
commit cb5035400c

View File

@ -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);