Skip to content

Commit

Permalink
lib: nrf_modem_lib: set data cache alignment to 32 bytes
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 6a08601)
  • Loading branch information
anhmolt authored and rlubos committed Oct 31, 2024
1 parent 49692bf commit d37d55b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nrf_modem_lib/nrf_modem_os_rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <zephyr/ipc/icmsg.h>
#include <zephyr/ipc/pbuf.h>

#define DCACHE_LINE_SIZE 0
#define DCACHE_LINE_SIZE (CONFIG_DCACHE_LINE_SIZE)
BUILD_ASSERT(DCACHE_LINE_SIZE == 32
"Unexpected data cache line size " STRINGIFY(DCACHE_LINE_SIZE) ", expected 32");

/** Structure to hold pbuf configuration and data. */
struct nrf_modem_pbuf {
Expand Down

0 comments on commit d37d55b

Please sign in to comment.