mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 22:51:19 +08:00
rtems: Move unnest dispatch after ISR enable
This prevents a lock order reversal.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user