From 54a43fe433111830be9399b88f836099b5dbad8e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 26 Feb 2004 16:50:21 +0000 Subject: 2004-02-26 Joel Sherrill PR 583/tests * tm26/task1.c, tm27/task1.c: Correctly reset _Thread_Dispatch_disable_level so printing is safe. --- testsuites/tmtests/tm26/task1.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testsuites/tmtests/tm26/task1.c') 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 @@ -417,6 +417,15 @@ void complete_test( void ) (void) _Thread_Get( 0x3, &location ); 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 */ -- cgit v1.2.3