From: richardbarry Date: Wed, 7 Mar 2007 17:52:10 +0000 (+0000) Subject: Add an option for 8 byte alignment. X-Git-Tag: V4.2.1~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7ffcbdc30ccc6b46518e14318aed7658a79648f;p=freertos 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 --- 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