From 235aaf0c107438e8adc2be2feb45a1085bb25d5b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 9 Aug 2009 15:23:10 +0000 Subject: 2009-08-09 Xi Yang * 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. --- cpukit/score/include/rtems/score/heap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/score/include/rtems/score/heap.h') 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 -- cgit v1.2.3