[rtems-libbsd commit] rtems_bsd_mutex: Add missing ISR enable

Sebastian Huber sebh at rtems.org
Fri Feb 13 09:48:13 UTC 2015


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Feb 12 13:26:26 2015 +0100

rtems_bsd_mutex: Add missing ISR enable

---

 rtemsbsd/rtems/rtems-bsd-muteximpl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rtemsbsd/rtems/rtems-bsd-muteximpl.c b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
index 5dc3346..2873e32 100644
--- a/rtemsbsd/rtems/rtems-bsd-muteximpl.c
+++ b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
@@ -88,6 +88,8 @@ rtems_bsd_mutex_unlock_more(rtems_bsd_mutex *m, Thread_Control *owner,
 		_Thread_Clear_state(new_owner, STATES_WAITING_FOR_MUTEX);
 
 		_Thread_Enable_dispatch();
+	} else {
+		_ISR_Enable(level);
 	}
 
 	if (!keep_priority) {




More information about the vc mailing list