forked from Imagelibrary/rtems
sptests/sp37: Disable dispatch for clock tick
This commit is contained in:
@@ -192,7 +192,7 @@ rtems_timer_service_routine test_unblock_task(
|
|||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
status = rtems_task_resume( blocked_task_id );
|
status = rtems_task_resume( blocked_task_id );
|
||||||
_Thread_Unnest_dispatch();
|
_Thread_Unnest_dispatch();
|
||||||
directive_failed( status, "rtems_task_resume" );
|
directive_failed_with_level( status, "rtems_task_resume", 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
@@ -223,7 +223,9 @@ rtems_task Init(
|
|||||||
/*
|
/*
|
||||||
* Test clock tick from outside ISR
|
* Test clock tick from outside ISR
|
||||||
*/
|
*/
|
||||||
|
_Thread_Disable_dispatch();
|
||||||
status = rtems_clock_tick();
|
status = rtems_clock_tick();
|
||||||
|
_Thread_Enable_dispatch();
|
||||||
directive_failed( status, "rtems_clock_tick" );
|
directive_failed( status, "rtems_clock_tick" );
|
||||||
puts( "clock_tick from task level" );
|
puts( "clock_tick from task level" );
|
||||||
|
|
||||||
@@ -260,7 +262,9 @@ rtems_task Init(
|
|||||||
|
|
||||||
/* we expect to be preempted from this call */
|
/* we expect to be preempted from this call */
|
||||||
for ( i=0 ; i<100 && blocked_task_status != 3 ; i++ ) {
|
for ( i=0 ; i<100 && blocked_task_status != 3 ; i++ ) {
|
||||||
|
_Thread_Disable_dispatch();
|
||||||
status = rtems_clock_tick();
|
status = rtems_clock_tick();
|
||||||
|
_Thread_Enable_dispatch();
|
||||||
directive_failed( status, "rtems_clock_tick" );
|
directive_failed( status, "rtems_clock_tick" );
|
||||||
}
|
}
|
||||||
switch ( blocked_task_status ) {
|
switch ( blocked_task_status ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user