Skip to content

Commit d37d55b

Browse files
anhmoltrlubos
authored andcommitted
lib: nrf_modem_lib: set data cache alignment to 32 bytes
The nRF9230 application core has data cache with a cache line width of 32 bytes. Set the dcache alignment of ICMsg pbuf to 32 bytes to align. Signed-off-by: Andreas Moltumyr <andreas.moltumyr@nordicsemi.no> (cherry picked from commit 6a08601)
1 parent 49692bf commit d37d55b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/nrf_modem_lib/nrf_modem_os_rpc.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
#include <zephyr/ipc/icmsg.h>
1919
#include <zephyr/ipc/pbuf.h>
2020

21-
#define DCACHE_LINE_SIZE 0
21+
#define DCACHE_LINE_SIZE (CONFIG_DCACHE_LINE_SIZE)
22+
BUILD_ASSERT(DCACHE_LINE_SIZE == 32
23+
"Unexpected data cache line size " STRINGIFY(DCACHE_LINE_SIZE) ", expected 32");
2224

2325
/** Structure to hold pbuf configuration and data. */
2426
struct nrf_modem_pbuf {

0 commit comments

Comments
 (0)