diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/heap.inl | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d4de5f80b0..0ea66a2762 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-03-06 Joel Sherrill <joel.sherrill@oarcorp.com> + + * score/inline/rtems/score/heap.inl: Use the correct fields and do end + - begin. + 2009-03-05 Sebastian Huber <sebastian.huber@embedded-brains.de> * libcsupport/src/malloc_initialize.c: Fixed invalid function diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index ccff0bacb8..09d6e5b0cd 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -380,7 +380,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Heap_Get_size ( Heap_Control *the_heap ) { - return the_heap->final - the_heap->start; + return the_heap->end - the_heap->begin; } /**@}*/ |