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 <emil.obalski@nordicsemi.no>
This commit is contained in:
Emil Obalski 2022-03-31 11:50:03 +02:00 committed by Anas Nashif
commit cc57f0acb9

View file

@ -11,7 +11,7 @@
* 212 - sizeof(struct icmsg_buf) - 1 = 199. * 212 - sizeof(struct icmsg_buf) - 1 = 199.
* -1 because internal rd/wr_idx is reserved to mean the buffer is empty. * -1 because internal rd/wr_idx is reserved to mean the buffer is empty.
*/ */
static uint8_t memory_area[212]; static uint8_t memory_area[212] __aligned(4);
static void test_icmsg_buf_ut(void) static void test_icmsg_buf_ut(void)
{ {