mirror of https://github.com/thesofproject/sof.git
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:
parent
904e031b24
commit
c9f2ac7c26
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue