[rtems commit] rtems: Move unnest dispatch after ISR enable
Sebastian Huber
sebh at rtems.org
Fri Jun 7 15:02:23 UTC 2013
Module: rtems
Branch: master
Commit: 62da44e6d0687af51462e4e5a06d8e6f7c3d9893
Changeset: http://git.rtems.org/rtems/commit/?id=62da44e6d0687af51462e4e5a06d8e6f7c3d9893
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jun 5 14:09:38 2013 +0200
rtems: Move unnest dispatch after ISR enable
This prevents a lock order reversal.
---
cpukit/rtems/src/eventtimeout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/rtems/src/eventtimeout.c b/cpukit/rtems/src/eventtimeout.c
index 31eb043..4e595de 100644
--- a/cpukit/rtems/src/eventtimeout.c
+++ b/cpukit/rtems/src/eventtimeout.c
@@ -57,8 +57,8 @@ void _Event_Timeout(
* count set to zero.
*/
if ( !the_thread->Wait.count ) {
- _Thread_Unnest_dispatch();
_ISR_Enable( level );
+ _Thread_Unnest_dispatch();
return;
}
More information about the vc
mailing list