summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-25 14:53:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-25 14:53:30 +0000
commit0f20ef5418742e695ab1eaa2625c7f5c70cebd04 (patch)
treedcdd31e2887e86454b31092213e8f837c33c5584 /cpukit
parent2004-07-24 Mick Davis <mickd@microsol.iinet.net.au> (diff)
downloadrtems-0f20ef5418742e695ab1eaa2625c7f5c70cebd04.tar.bz2
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.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/ChangeLog7
-rw-r--r--cpukit/score/src/threadinitialize.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog
index 6182760b21..9d3c26b838 100644
--- a/cpukit/score/ChangeLog
+++ b/cpukit/score/ChangeLog
@@ -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
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index 7f1bef7134..1c43589c67 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.
*/