diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-20 18:22:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-20 18:22:28 +0000 |
commit | f3b7be3bf25a17d86bf1475a9a4145e113065854 (patch) | |
tree | efa0304e36abf126cdf7b7082a3f00bdacd50603 /cpukit | |
parent | 2005-01-20 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/rtems/src/ratemoncreate.c | 2 | ||||
-rw-r--r-- | cpukit/rtems/src/timercreate.c | 1 | ||||
-rw-r--r-- | cpukit/score/Makefile.am | 2 |
4 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b43bb7d851..172db9be1a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,12 @@ 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. + +2005-01-20 Joel Sherrill <joel@OARcorp.com> + PR 740/rtems * score/src/heapgetfreeinfo.c: Return size of largest not of last block. 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, diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index 63d5243c00..d426e2262a 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -95,7 +95,7 @@ CORE_SEMAPHORE_C_FILES = src/coresem.c src/coresemflush.c src/coresemseize.c \ HEAP_C_FILES = src/heap.c src/heapallocate.c src/heapextend.c src/heapfree.c \ src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \ - src/heapgetfreeinfo.c + src/heapgetfreeinfo.c src/heapallocatealigned.c OBJECT_C_FILES = src/object.c src/objectallocate.c \ src/objectallocatebyindex.c src/objectclearname.c \ |