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