diff options
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 6 |
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. */ |