summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-25 14:52:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-25 14:52:40 +0000
commitbdffb59ff7f258ef382932b9c0e893371b5cd155 (patch)
treed577f364fa08dfb2f0d4f68eee6eeef1b7e393ce
parent2004-07-25 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-bdffb59ff7f258ef382932b9c0e893371b5cd155.tar.bz2
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.
-rw-r--r--cpukit/ChangeLog7
-rw-r--r--cpukit/score/src/threadinitialize.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index ca76d3a7e3..65a4a431ae 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -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>
PR 641/rtems
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index 9a3649865d..319a3abea9 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -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
@@ -115,6 +116,11 @@ boolean _Thread_Initialize(
#endif
/*
+ * Initialize the thread timer
+ */
+ _Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL );
+
+ /*
* Clear the libc reent hook.
*/