From b7ffcbdc30ccc6b46518e14318aed7658a79648f Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 7 Mar 2007 17:52:10 +0000 Subject: [PATCH] Add an option for 8 byte alignment. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@67 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 -- 2.39.5