From cae6321cd804546e4ba0adfa98fbd80c5c8d7132 Mon Sep 17 00:00:00 2001 From: Iuliana Prodan Date: Fri, 20 Jun 2025 17:20:30 +0300 Subject: [PATCH] samples: use address translation ops in openamp_rsc_table sample Update openamp_rsc_table sample to use `metal_io_ops` for address translation, if configured. Signed-off-by: Iuliana Prodan --- samples/subsys/ipc/openamp_rsc_table/src/main_remote.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c index 97a244c02ed..27c8402868c 100644 --- a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c +++ b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c @@ -17,6 +17,7 @@ #include #include #include +#include #ifdef CONFIG_SHELL_BACKEND_RPMSG #include @@ -159,7 +160,7 @@ int platform_init(void) /* declare shared memory region */ metal_io_init(shm_io, (void *)SHM_START_ADDR, &shm_physmap, - SHM_SIZE, -1, 0, NULL); + SHM_SIZE, -1, 0, addr_translation_get_ops(shm_physmap)); /* declare resource table region */ rsc_table_get(&rsc_table, &rsc_size);