mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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.
This commit is contained in:
@@ -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>
|
2004-07-24 Mick Davis <mickd@microsol.iinet.net.au>
|
||||||
|
|
||||||
PR 641/rtems
|
PR 641/rtems
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#include <rtems/score/thread.h>
|
#include <rtems/score/thread.h>
|
||||||
#include <rtems/score/threadq.h>
|
#include <rtems/score/threadq.h>
|
||||||
#include <rtems/score/userext.h>
|
#include <rtems/score/userext.h>
|
||||||
|
#include <rtems/score/watchdog.h>
|
||||||
#include <rtems/score/wkspace.h>
|
#include <rtems/score/wkspace.h>
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
@@ -114,6 +115,11 @@ boolean _Thread_Initialize(
|
|||||||
the_thread->Start.fp_context = fp_area;
|
the_thread->Start.fp_context = fp_area;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the thread timer
|
||||||
|
*/
|
||||||
|
_Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clear the libc reent hook.
|
* Clear the libc reent hook.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user