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:24 +00:00
parent ec8472e0b7
commit 70e27c2d80
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.
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/timesys.h, tm01/system.h, tm01/task1.c, tm01/tm01.doc,

View File

@@ -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
*/

View File

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