summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm26/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 16:50:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 16:50:21 +0000
commit54a43fe433111830be9399b88f836099b5dbad8e (patch)
tree3ba7855038baf4ea359c85d7b82629f655ada821 /testsuites/tmtests/tm26/task1.c
parent2004-02-26 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-54a43fe433111830be9399b88f836099b5dbad8e.tar.bz2
2004-02-26 Joel Sherrill <joel@OARcorp.com>
PR 583/tests * tm26/task1.c, tm27/task1.c: Correctly reset _Thread_Dispatch_disable_level so printing is safe.
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r--testsuites/tmtests/tm26/task1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index 6db80632f8..299fa67ddc 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -418,6 +418,15 @@ void complete_test( void )
thread_get_invalid_time = Read_timer();
/*
+ * This is the running task and we have tricked RTEMS out enough where
+ * we need to set some internal tracking information to match this.
+ */
+
+ _Thread_Heir = _Thread_Executing;
+ _Context_Switch_necessary = FALSE;
+ _Thread_Dispatch_disable_level = 0;
+
+ /*
* Now dump all the times
*/