From 17228aca47ffb8cef6e88f6a24c17c988ca2345e Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Wed, 7 Mar 2007 17:52:10 +0000 Subject: [PATCH] Add an option for 8 byte alignment. --- Source/portable/MemMang/heap_1.c | 5 +++++ Source/portable/MemMang/heap_2.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Source/portable/MemMang/heap_1.c b/Source/portable/MemMang/heap_1.c index b99a3fb23..2de6cfca1 100644 --- a/Source/portable/MemMang/heap_1.c +++ b/Source/portable/MemMang/heap_1.c @@ -56,6 +56,11 @@ Changes between V2.6.1 and V3.0.0 #include "task.h" /* Setup the correct byte alignment mask for the defined byte alignment. */ + +#if portBYTE_ALIGNMENT == 8 + #define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0007 ) +#endif + #if portBYTE_ALIGNMENT == 4 #define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 ) #endif diff --git a/Source/portable/MemMang/heap_2.c b/Source/portable/MemMang/heap_2.c index 6be0139e6..a3ccaa4f6 100644 --- a/Source/portable/MemMang/heap_2.c +++ b/Source/portable/MemMang/heap_2.c @@ -44,6 +44,11 @@ #include "task.h" /* Setup the correct byte alignment mask for the defined byte alignment. */ + +#if portBYTE_ALIGNMENT == 8 + #define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0007 ) +#endif + #if portBYTE_ALIGNMENT == 4 #define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 ) #endif