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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-03-11 12:55:47 +01:00 committed by Liam Girdwood
parent 904e031b24
commit c9f2ac7c26
1 changed files with 1 additions and 1 deletions

View File

@ -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__