From c9f2ac7c264836d735cc3e66659a83e036aabd77 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 11 Mar 2022 12:55:47 +0100 Subject: [PATCH] cache: idc: always use platform_shared_get() with shared data Access to objects, defined with a SHARED_DATA attribute should only be performed, using the platform_shared_get() function. Signed-off-by: Guennadi Liakhovetski --- src/idc/idc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idc/idc.c b/src/idc/idc.c index fab7d9bae..f23acf3a5 100644 --- a/src/idc/idc.c +++ b/src/idc/idc.c @@ -348,7 +348,7 @@ int idc_init(void) /* initialize idc data */ *idc = rzalloc(SOF_MEM_ZONE_SYS, 0, SOF_MEM_CAPS_RAM, sizeof(**idc)); - (*idc)->payload = cache_to_uncache((struct idc_payload *)static_payload); + (*idc)->payload = platform_shared_get(static_payload, sizeof(static_payload)); /* process task */ #ifndef __ZEPHYR__