summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heap.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-01-27 05:57:05 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-01-27 05:57:05 +0000
commita8eed2387c28bb56ada10f815874cc55b8d820a5 (patch)
tree88a38afe4060bea6f2c179f87ff8cfce6e359d11 /cpukit/score/src/heap.c
parent2005-01-26 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-a8eed2387c28bb56ada10f815874cc55b8d820a5.tar.bz2
Include config.h.
Diffstat (limited to 'cpukit/score/src/heap.c')
-rw-r--r--cpukit/score/src/heap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/heap.c b/cpukit/score/src/heap.c
index 910ac94c33..00dda0afb0 100644
--- a/cpukit/score/src/heap.c
+++ b/cpukit/score/src/heap.c
@@ -11,6 +11,9 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
@@ -169,7 +172,6 @@ uint32_t _Heap_Initialize(
_HAssert(_Heap_Is_aligned(the_heap->min_block_size, page_size));
_HAssert(_Heap_Is_aligned_ptr(_Heap_User_area(the_block), page_size));
-
the_block = _Heap_Block_at( the_block, the_size );
the_heap->final = the_block; /* Permanent final block of the heap */
the_block->prev_size = the_size; /* Previous block is free */
@@ -199,7 +201,6 @@ uint32_t _Heap_Initialize(
*
*/
-
/*
* Convert user requested 'size' of memory block to the block size.
* Return block size on success, 0 if overflow occured
@@ -215,7 +216,6 @@ uint32_t _Heap_Calc_block_size(
return (block_size > size) ? block_size : 0;
}
-
/*
* Allocate block of size 'alloc_size' from 'the_block' belonging to
* 'the_heap'. Either split 'the_block' or allocate it entirely.