From bdffb59ff7f258ef382932b9c0e893371b5cd155 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 25 Jul 2004 14:52:40 +0000 Subject: 2004-07-25 Victor Vengerov 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. --- cpukit/ChangeLog | 7 +++++++ cpukit/score/src/threadinitialize.c | 6 ++++++ 2 files changed, 13 insertions(+) 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 + + 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 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 #include #include +#include #include /*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. */ -- cgit v1.2.3