forked from Imagelibrary/rtems
Fixed verificaiton checks to call correct macro if dispatch is disabled.
This commit is contained in:
@@ -51,25 +51,30 @@ void ITRON_Init( void )
|
|||||||
|
|
||||||
puts("INIT - dis_dsp while starting tasks");
|
puts("INIT - dis_dsp while starting tasks");
|
||||||
status = dis_dsp( );
|
status = dis_dsp( );
|
||||||
directive_failed( status, "dis_dsp from ITRON_Init" );
|
|
||||||
|
/* dispatching disabled */
|
||||||
|
|
||||||
|
directive_failed_with_level( status, "dis_dsp from ITRON_Init", 1 );
|
||||||
status = sta_tsk( TA1_ID, 0 );
|
status = sta_tsk( TA1_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA1" );
|
directive_failed_with_level( status, "sta_tsk of TA1", 1 );
|
||||||
status = sta_tsk( TA2_ID, 0 );
|
status = sta_tsk( TA2_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA2" );
|
directive_failed_with_level( status, "sta_tsk of TA2", 1 );
|
||||||
status = sta_tsk( TA3_ID, 0 );
|
status = sta_tsk( TA3_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA3" );
|
directive_failed_with_level( status, "sta_tsk of TA3", 1 );
|
||||||
|
|
||||||
puts( "INIT - suspending TA2 3 times" );
|
puts( "INIT - suspending TA2 3 times" );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
|
|
||||||
puts("INIT - ena_dsp while starting tasks");
|
puts("INIT - ena_dsp while starting tasks");
|
||||||
status = ena_dsp( );
|
status = ena_dsp( );
|
||||||
|
|
||||||
|
/* dispatching enabled again */
|
||||||
|
|
||||||
puts( "INIT - suspending TA1 3 times" );
|
puts( "INIT - suspending TA1 3 times" );
|
||||||
status = sus_tsk( TA1_ID );
|
status = sus_tsk( TA1_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed( status, "sus_tsk of TA2" );
|
||||||
|
|||||||
@@ -51,25 +51,30 @@ void ITRON_Init( void )
|
|||||||
|
|
||||||
puts("INIT - dis_dsp while starting tasks");
|
puts("INIT - dis_dsp while starting tasks");
|
||||||
status = dis_dsp( );
|
status = dis_dsp( );
|
||||||
directive_failed( status, "dis_dsp from ITRON_Init" );
|
|
||||||
|
/* dispatching disabled */
|
||||||
|
|
||||||
|
directive_failed_with_level( status, "dis_dsp from ITRON_Init", 1 );
|
||||||
status = sta_tsk( TA1_ID, 0 );
|
status = sta_tsk( TA1_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA1" );
|
directive_failed_with_level( status, "sta_tsk of TA1", 1 );
|
||||||
status = sta_tsk( TA2_ID, 0 );
|
status = sta_tsk( TA2_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA2" );
|
directive_failed_with_level( status, "sta_tsk of TA2", 1 );
|
||||||
status = sta_tsk( TA3_ID, 0 );
|
status = sta_tsk( TA3_ID, 0 );
|
||||||
directive_failed( status, "sta_tsk of TA3" );
|
directive_failed_with_level( status, "sta_tsk of TA3", 1 );
|
||||||
|
|
||||||
puts( "INIT - suspending TA2 3 times" );
|
puts( "INIT - suspending TA2 3 times" );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
status = sus_tsk( TA2_ID );
|
status = sus_tsk( TA2_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed_with_level( status, "sus_tsk of TA2", 1 );
|
||||||
|
|
||||||
puts("INIT - ena_dsp while starting tasks");
|
puts("INIT - ena_dsp while starting tasks");
|
||||||
status = ena_dsp( );
|
status = ena_dsp( );
|
||||||
|
|
||||||
|
/* dispatching enabled again */
|
||||||
|
|
||||||
puts( "INIT - suspending TA1 3 times" );
|
puts( "INIT - suspending TA1 3 times" );
|
||||||
status = sus_tsk( TA1_ID );
|
status = sus_tsk( TA1_ID );
|
||||||
directive_failed( status, "sus_tsk of TA2" );
|
directive_failed( status, "sus_tsk of TA2" );
|
||||||
|
|||||||
Reference in New Issue
Block a user