diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-09 15:23:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-09 15:23:10 +0000 |
commit | 235aaf0c107438e8adc2be2feb45a1085bb25d5b (patch) | |
tree | 85da6c0af1f61dec644cfe311541170bf5238e39 /cpukit/score/include/rtems/score/heap.h | |
parent | 2009-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-235aaf0c107438e8adc2be2feb45a1085bb25d5b.tar.bz2 |
2009-08-09 Xi Yang <hiyangxi@gmail.com>
* libcsupport/Makefile.am, posix/Makefile.am, rtems/Makefile.am,
sapi/Makefile.am, score/Makefile.am,
score/include/rtems/score/heap.h: HEAP_BLOCK_USED_OVERHEAD was under
by one uint32_t. This showed up in the unlimited and heapwalk tests
on ARM targets.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/heap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index 240cf0cd42..52b55fac70 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -117,15 +117,15 @@ struct Heap_Block_struct { /** * Offset of user data pointer from the block pointer. Equal to the - * offsetof(Heap_Block.next). + * offset of(Heap_Block.next). */ #define HEAP_BLOCK_USER_OFFSET (sizeof(uint32_t) * 2) /** - * Num bytes of overhead in used block. Equal to the sizeof(Heap_Block.size). + * This is the number of bytes of overhead in a used block. + * Equal to the sizeof(Heap_Block.previous and next). */ -#define HEAP_BLOCK_USED_OVERHEAD \ - (HEAP_BLOCK_USER_OFFSET - HEAP_BLOCK_HEADER_OFFSET) +#define HEAP_BLOCK_USED_OVERHEAD (sizeof(uint32_t) * 2) /** Size of the permanent dummy last block. */ #define HEAP_OVERHEAD HEAP_BLOCK_USER_OFFSET |