From 17175bbd3d46a497026833ecd170fffbd9992422 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Mar 2009 20:08:20 +0000 Subject: 2009-03-06 Joel Sherrill * score/inline/rtems/score/heap.inl: Use the correct fields and do end - begin. --- cpukit/ChangeLog | 5 +++++ cpukit/score/inline/rtems/score/heap.inl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * score/inline/rtems/score/heap.inl: Use the correct fields and do end + - begin. + 2009-03-05 Sebastian Huber * 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; } /**@}*/ -- cgit v1.2.3