Skip to content

Commit a569a30

Browse files
committed
Force alignment of memarray blocks
1 parent e429ff0 commit a569a30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/wakaama/platform.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ uint16_t cnt512 = 0;
5555
uint16_t cnt512_max = 0;
5656
#endif /* DEBUG_MALLOC */
5757

58-
uint8_t b16_data[16][MAX_16BYTE_BLOCKS];
59-
uint8_t b32_data[32][MAX_32BYTE_BLOCKS];
60-
uint8_t b64_data[64][MAX_64BYTE_BLOCKS];
61-
uint8_t b192_data[192][MAX_192BYTE_BLOCKS];
62-
uint8_t b512_data[512][MAX_512BYTE_BLOCKS];
58+
uint8_t b16_data[16][MAX_16BYTE_BLOCKS] __attribute__((aligned(4)));
59+
uint8_t b32_data[32][MAX_32BYTE_BLOCKS] __attribute__((aligned(4)));
60+
uint8_t b64_data[64][MAX_64BYTE_BLOCKS] __attribute__((aligned(4)));
61+
uint8_t b192_data[192][MAX_192BYTE_BLOCKS] __attribute__((aligned(4)));
62+
uint8_t b512_data[512][MAX_512BYTE_BLOCKS] __attribute__((aligned(4)));
6363
memarray_t b16_storage;
6464
memarray_t b32_storage;
6565
memarray_t b64_storage;

0 commit comments

Comments
 (0)