diff options
Diffstat (limited to 'testsuites/tmtests')
-rw-r--r-- | testsuites/tmtests/tm26/task1.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index b3544741bc..c2a5610a23 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -14,9 +14,9 @@ #include <rtems.h> #include "system.h" #include "fptest.h" -#include "coverhd.h" -#include "tmacros.h" -#include "timesys.h" +#include <coverhd.h> +#include <tmacros.h> +#include <timesys.h> #undef EXTERN #define EXTERN @@ -234,6 +234,8 @@ rtems_task Middle_task( _Context_Switch_necessary = FALSE; + _Thread_Disable_dispatch(); + Timer_initialize(); _Context_Switch( &Middle_tcb->Registers, &_Thread_Executing->Registers ); } @@ -263,6 +265,8 @@ rtems_task Low_task( _Context_Switch_necessary = FALSE; + _Thread_Disable_dispatch(); + Timer_initialize(); _Context_Restore_fp( &_Thread_Executing->fp_context ); _Context_Switch( &executing->Registers, &_Thread_Executing->Registers ); @@ -294,6 +298,8 @@ rtems_task Floating_point_task_1( _Context_Switch_necessary = FALSE; + _Thread_Disable_dispatch(); + Timer_initialize(); _Context_Save_fp( &executing->fp_context ); _Context_Restore_fp( &_Thread_Executing->fp_context ); @@ -321,6 +327,8 @@ rtems_task Floating_point_task_1( _Context_Switch_necessary = FALSE; + _Thread_Disable_dispatch(); + Timer_initialize(); _Context_Save_fp( &executing->fp_context ); _Context_Restore_fp( &_Thread_Executing->fp_context ); @@ -356,6 +364,8 @@ rtems_task Floating_point_task_2( _Context_Switch_necessary = FALSE; + _Thread_Disable_dispatch(); + Timer_initialize(); _Context_Save_fp( &executing->fp_context ); _Context_Restore_fp( &_Thread_Executing->fp_context ); |