summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/heap.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-21 19:51:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-21 19:51:41 +0000
commit74ac113b6e12976178137001d012e029a1fb8cd7 (patch)
tree0de55293e105c749be4d21408ff66cad9d279b47 /cpukit/score/include/rtems/score/heap.h
parent2011-08-18 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-74ac113b6e12976178137001d012e029a1fb8cd7.tar.bz2
2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1873/cpukit * score/include/rtems/score/heap.h: When using heap protection, we should account for adding an aligned protection footer.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/heap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h
index 6eee1c745b..87dc66599e 100644
--- a/cpukit/score/include/rtems/score/heap.h
+++ b/cpukit/score/include/rtems/score/heap.h
@@ -177,7 +177,9 @@ typedef struct Heap_Block Heap_Block;
} Heap_Protection_block_end;
#define HEAP_PROTECTION_HEADER_SIZE \
- (sizeof(Heap_Protection_block_begin) + sizeof(Heap_Protection_block_end))
+ (sizeof(Heap_Protection_block_begin) + \
+ CPU_ALIGNMENT + \
+ sizeof(Heap_Protection_block_end))
#endif
/**