summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-06-05 23:55:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-06-05 23:55:00 +0000
commit459f770f5e1ff53d5cd7fa1b4773fac8503f6e4f (patch)
tree901ee41c15c68556f661b2daf3ec90bcac19770a /testsuites/tmtests
parentconditional added for the hppa gr27 (diff)
downloadrtems-459f770f5e1ff53d5cd7fa1b4773fac8503f6e4f.tar.bz2
added calls to _Thread_Disable_dispatch to match requirements
for invocation of _Thread_Handler
Diffstat (limited to 'testsuites/tmtests')
-rw-r--r--testsuites/tmtests/tm26/task1.c16
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 );