cavs: memory: fix panic on tplg load for zephyr on cavs20/25

The Zephyr linker scripts for cavs20/25 do not map sections
on uncached RAM, so the memory accesses to uncached memory will
fail. This shows up as a DSP panic while loading initial topology.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
This commit is contained in:
Kai Vehmanen 2021-05-20 11:17:11 +03:00 committed by Liam Girdwood
parent 7de1744501
commit 72a51a462f
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ struct sof;
#define SRAM_ALIAS_MASK 0xFF000000
#define SRAM_ALIAS_OFFSET SRAM_UNCACHED_ALIAS
#if !defined UNIT_TEST
#if !defined UNIT_TEST && (CAVS_VERSION <= CAVS_VERSION_1_8 || !defined __ZEPHYR__)
#define uncache_to_cache(address) \
((__typeof__(address))((uint32_t)(address) | SRAM_ALIAS_OFFSET))
#define cache_to_uncache(address) \