2004-07-25 Victor Vengerov <Victor.Vengerov@oktetlabs.ru>

PR 654/rtems
	* score/src/threadinitialize.c: Initialize the per thread watchdog
	timer. When the thread control block is reused, we cannot depend on
	it being zeroed.
This commit is contained in:
Joel Sherrill
2004-07-25 14:52:40 +00:00
parent f392719925
commit bdffb59ff7
2 changed files with 13 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2004-07-25 Victor Vengerov <Victor.Vengerov@oktetlabs.ru>
PR 654/rtems
* score/src/threadinitialize.c: Initialize the per thread watchdog
timer. When the thread control block is reused, we cannot depend on
it being zeroed.
2004-07-24 Mick Davis <mickd@microsol.iinet.net.au> 2004-07-24 Mick Davis <mickd@microsol.iinet.net.au>
PR 641/rtems PR 641/rtems

View File

@@ -24,6 +24,7 @@
#include <rtems/score/thread.h> #include <rtems/score/thread.h>
#include <rtems/score/threadq.h> #include <rtems/score/threadq.h>
#include <rtems/score/userext.h> #include <rtems/score/userext.h>
#include <rtems/score/watchdog.h>
#include <rtems/score/wkspace.h> #include <rtems/score/wkspace.h>
/*PAGE /*PAGE
@@ -114,6 +115,11 @@ boolean _Thread_Initialize(
the_thread->Start.fp_context = fp_area; the_thread->Start.fp_context = fp_area;
#endif #endif
/*
* Initialize the thread timer
*/
_Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL );
/* /*
* Clear the libc reent hook. * Clear the libc reent hook.
*/ */