diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-25 14:52:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-25 14:52:40 +0000 |
commit | bdffb59ff7f258ef382932b9c0e893371b5cd155 (patch) | |
tree | d577f364fa08dfb2f0d4f68eee6eeef1b7e393ce /cpukit/score/src | |
parent | 2004-07-25 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |