summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-20 18:22:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-20 18:22:28 +0000
commitf3b7be3bf25a17d86bf1475a9a4145e113065854 (patch)
treeefa0304e36abf126cdf7b7082a3f00bdacd50603 /cpukit/rtems
parent2005-01-20 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-f3b7be3bf25a17d86bf1475a9a4145e113065854.tar.bz2
2005-01-20 Joel Sherrill <joel@OARcorp.com>
PR 745/rtems * rtems/src/ratemoncreate.c, rtems/src/timercreate.c: Make sure internal timer structures are initialized so object control reuse is safe.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/src/ratemoncreate.c2
-rw-r--r--cpukit/rtems/src/timercreate.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
index 98e3c32fdc..5585a8ea36 100644
--- a/cpukit/rtems/src/ratemoncreate.c
+++ b/cpukit/rtems/src/ratemoncreate.c
@@ -66,6 +66,8 @@ rtems_status_code rtems_rate_monotonic_create(
the_period->owner = _Thread_Executing;
the_period->state = RATE_MONOTONIC_INACTIVE;
+ _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
+
_Objects_Open(
&_Rate_monotonic_Information,
&the_period->Object,
diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c
index 4b1f5294a8..e303b93204 100644
--- a/cpukit/rtems/src/timercreate.c
+++ b/cpukit/rtems/src/timercreate.c
@@ -64,6 +64,7 @@ rtems_status_code rtems_timer_create(
}
the_timer->the_class = TIMER_DORMANT;
+ _Watchdog_Initialize( &the_timer->Ticker, NULL, 0, NULL );
_Objects_Open(
&_Timer_Information,