Skip to content

Commit cc57f0a

Browse files
Emil Obalskinashif
authored andcommitted
tests: Align buffer in icmsg_buf tests.
This change adds alignment to buffer on which icmsg_buf is created. Some platforms run into fatal exception when accessing unaligned addresses. Fix that by ensure 4 byte alignment. Signed-off-by: Emil Obalski <[email protected]>
1 parent 370ce60 commit cc57f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/icmsg/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* 212 - sizeof(struct icmsg_buf) - 1 = 199.
1212
* -1 because internal rd/wr_idx is reserved to mean the buffer is empty.
1313
*/
14-
static uint8_t memory_area[212];
14+
static uint8_t memory_area[212] __aligned(4);
1515

1616
static void test_icmsg_buf_ut(void)
1717
{

0 commit comments

Comments
 (0)