diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-03-17 14:24:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-03-17 14:24:35 +0000 |
commit | 9f781394bd6a19277678132d774c6977887b48bd (patch) | |
tree | a6b747977646f7d8c129a24f89363eb5a6832852 /cpukit | |
parent | 2005-01-20 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/rtems/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/rtems/src/ratemoncreate.c | 2 | ||||
-rw-r--r-- | cpukit/rtems/src/timercreate.c | 1 |
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, |