summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-03-17 14:24:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-03-17 14:24:35 +0000
commit9f781394bd6a19277678132d774c6977887b48bd (patch)
treea6b747977646f7d8c129a24f89363eb5a6832852
parent2005-01-20 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-9f781394bd6a19277678132d774c6977887b48bd.tar.bz2
2005-03-17 Joel Sherrill <joel@OARcorp.com>
PR 745/rtems * src/ratemoncreate.c, src/timercreate.c: Make sure internal timer structures are initialized so object control reuse is safe.
-rw-r--r--cpukit/rtems/ChangeLog6
-rw-r--r--cpukit/rtems/src/ratemoncreate.c2
-rw-r--r--cpukit/rtems/src/timercreate.c1
3 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog
index a241137d8b..872a271ea3 100644
--- a/cpukit/rtems/ChangeLog
+++ b/cpukit/rtems/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-17 Joel Sherrill <joel@OARcorp.com>
+
+ PR 745/rtems
+ * src/ratemoncreate.c, src/timercreate.c: Make sure internal timer
+ structures are initialized so object control reuse is safe.
+
2004-10-15 Joel Sherrill <joel@OARcorp.com>
PR 692/rtems
diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
index 27d397e9ca..6ff68d6fc1 100644
--- a/cpukit/rtems/src/ratemoncreate.c
+++ b/cpukit/rtems/src/ratemoncreate.c
@@ -62,6 +62,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 2a41411bc3..4bf6bd2973 100644
--- a/cpukit/rtems/src/timercreate.c
+++ b/cpukit/rtems/src/timercreate.c
@@ -60,6 +60,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,