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

View file

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

View file

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