From 459f770f5e1ff53d5cd7fa1b4773fac8503f6e4f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 5 Jun 1995 23:55:00 +0000 Subject: added calls to _Thread_Disable_dispatch to match requirements for invocation of _Thread_Handler --- testsuites/tmtests/tm26/task1.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'testsuites/tmtests') 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 #include "system.h" #include "fptest.h" -#include "coverhd.h" -#include "tmacros.h" -#include "timesys.h" +#include +#include +#include #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 ); -- cgit v1.2.3