From 80fca28198170a84cde8a9f22dbb29c3a6c4123b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 13 Jun 2015 15:29:04 +0200 Subject: score: Add _Watchdog_Preinitialize() Add an assert to ensure that the watchdog is the proper state for a _Watchdog_Initialize(). This helps to detect invalid initializations which may lead to a corrupt watchdog chain. --- cpukit/score/src/threadinitialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index a09693acc0..3c0a412aee 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -137,7 +137,7 @@ bool _Thread_Initialize( /* * Initialize the thread timer */ - _Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL ); + _Watchdog_Preinitialize( &the_thread->Timer ); #ifdef __RTEMS_STRICT_ORDER_MUTEX__ /* Initialize the head of chain of held mutexes */ -- cgit v1.2.3