diff options
Diffstat (limited to 'testsuites/sptests/sp37/init.c')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index cec6d06824..68b28a6703 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -402,8 +402,9 @@ rtems_timer_service_routine test_unblock_task( void *arg ) { - bool in_isr; - rtems_status_code status; + bool in_isr; + rtems_status_code status; + Per_CPU_Control *cpu_self; in_isr = rtems_interrupt_is_in_progress(); status = rtems_task_is_suspended( blocked_task_id ); @@ -420,9 +421,9 @@ rtems_timer_service_routine test_unblock_task( } blocked_task_status = 2; - _Thread_Disable_dispatch(); + cpu_self = _Thread_Dispatch_disable(); status = rtems_task_resume( blocked_task_id ); - _Thread_Unnest_dispatch(); + _Thread_Dispatch_enable( cpu_self ); directive_failed( status, "rtems_task_resume" ); } |