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.
This commit is contained in:
Joel Sherrill
2004-02-26 16:50:21 +00:00
parent 652524d953
commit 54a43fe433
3 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
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.
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* tm01/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. * tm01/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.

View File

@@ -417,6 +417,15 @@ void complete_test( void )
(void) _Thread_Get( 0x3, &location ); (void) _Thread_Get( 0x3, &location );
thread_get_invalid_time = Read_timer(); 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 * Now dump all the times
*/ */

View File

@@ -144,6 +144,8 @@ rtems_task Task_1(
#endif #endif
Interrupt_return_time = Read_timer(); Interrupt_return_time = Read_timer();
_Thread_Dispatch_disable_level = 0;
put_time( put_time(
"interrupt entry overhead: returns to nested interrupt", "interrupt entry overhead: returns to nested interrupt",
Interrupt_enter_nested_time, Interrupt_enter_nested_time,