1
0
mirror of https://github.com/FreeRTOS/FreeRTOS.git synced 2025-07-28 16:22:26 +08:00

Add an option for 8 byte alignment.

This commit is contained in:
Richard Barry
2007-03-07 17:52:10 +00:00
parent 8b8a0eeff3
commit 17228aca47
2 changed files with 10 additions and 0 deletions
Source/portable/MemMang

@ -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

@ -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