[rtems-libbsd commit] _sx_xlock(): Added check for not in interrupt.

Jennifer Averett jennifer at rtems.org
Wed Oct 24 19:57:14 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    cb5035400c0036f5df75681c189242d400423724
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=cb5035400c0036f5df75681c189242d400423724

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Wed Oct 24 15:01:23 2012 -0500

_sx_xlock(): Added check for not in interrupt.

---

 rtemsbsd/src/rtems-bsd-sx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/rtemsbsd/src/rtems-bsd-sx.c b/rtemsbsd/src/rtems-bsd-sx.c
index 2b422ca..3634d85 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);
 




More information about the vc mailing list