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

PR 654/rtems
	* 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:53:30 +00:00
parent 0ca88a1dd4
commit 0f20ef5418
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
* 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 Joel Sherrill <joel@OARcorp.com>
PR 661/rtems

View File

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