cache: use the .shared_data section with single core too

Shared objects are placed into a separate section to make sure they
don't share cache lines with core-local data. This must also be done
in single-core configurations because those configurations perform
uncached access and manage cache manually too.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2022-03-10 10:14:29 +01:00 committed by Liam Girdwood
parent ebf940e31e
commit eca1aff7ca
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ struct sof;
* uncached memory region. SMP platforms without uncache can simply
* align to cache line size instead.
*/
#if CONFIG_CORE_COUNT > 1 && !defined(UNIT_TEST) && !defined __ZEPHYR__
#if !defined(UNIT_TEST) && !defined __ZEPHYR__
#define SHARED_DATA __section(".shared_data") __attribute__((aligned(PLATFORM_DCACHE_ALIGN)))
#else
#define SHARED_DATA