From 74ac113b6e12976178137001d012e029a1fb8cd7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 21 Aug 2011 19:51:41 +0000 Subject: 2011-08-21 Joel Sherrill PR 1873/cpukit * score/include/rtems/score/heap.h: When using heap protection, we should account for adding an aligned protection footer. --- cpukit/score/include/rtems/score/heap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 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 /** -- cgit v1.2.3