mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add an option for 8 byte alignment.
This commit is contained in:
parent
8b8a0eeff3
commit
17228aca47
|
@ -56,6 +56,11 @@ Changes between V2.6.1 and V3.0.0
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
/* Setup the correct byte alignment mask for the defined byte alignment. */
|
/* 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
|
#if portBYTE_ALIGNMENT == 4
|
||||||
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 )
|
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 )
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -44,6 +44,11 @@
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
/* Setup the correct byte alignment mask for the defined byte alignment. */
|
/* 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
|
#if portBYTE_ALIGNMENT == 4
|
||||||
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 )
|
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 )
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue