diff --git a/soc/xtensa/intel_adsp/cavs_v15/linker.ld b/soc/xtensa/intel_adsp/cavs_v15/linker.ld index 2cf7b64f69b..e486dcacd18 100644 --- a/soc/xtensa/intel_adsp/cavs_v15/linker.ld +++ b/soc/xtensa/intel_adsp/cavs_v15/linker.ld @@ -42,9 +42,11 @@ PROVIDE(_MemErrorHandler = 0x00000000); * the output tooling ignores it, but it will cause the linker to emit * 512MB of unused data into the output file!) * + * (Note clumsy syntax because XCC doesn't understand the "~" operator) + * */ #define SEGSTART_CACHED (ALIGN(64) | 0x20000000) -#define SEGSTART_UNCACHED (ALIGN(64) & ~0x20000000) +#define SEGSTART_UNCACHED (ALIGN(64) & 0xdfffffff) /* == ~0x20000000 */ MEMORY { diff --git a/soc/xtensa/intel_adsp/cavs_v18/linker.ld b/soc/xtensa/intel_adsp/cavs_v18/linker.ld index 964fcbfea19..3fe01f9108e 100644 --- a/soc/xtensa/intel_adsp/cavs_v18/linker.ld +++ b/soc/xtensa/intel_adsp/cavs_v18/linker.ld @@ -42,9 +42,11 @@ PROVIDE(_MemErrorHandler = 0x00000000); * the output tooling ignores it, but it will cause the linker to emit * 512MB of unused data into the output file!) * + * (Note clumsy syntax because XCC doesn't understand the "~" operator) + * */ #define SEGSTART_CACHED (ALIGN(64) | 0x20000000) -#define SEGSTART_UNCACHED (ALIGN(64) & ~0x20000000) +#define SEGSTART_UNCACHED (ALIGN(64) & 0xdfffffff) /* == ~0x20000000 */ MEMORY { diff --git a/soc/xtensa/intel_adsp/cavs_v25/linker.ld b/soc/xtensa/intel_adsp/cavs_v25/linker.ld index 52baffb8da5..161d2ba5853 100644 --- a/soc/xtensa/intel_adsp/cavs_v25/linker.ld +++ b/soc/xtensa/intel_adsp/cavs_v25/linker.ld @@ -42,10 +42,11 @@ PROVIDE(_MemErrorHandler = 0x00000000); * the output tooling ignores it, but it will cause the linker to emit * 512MB of unused data into the output file!) * + * (Note clumsy syntax because XCC doesn't understand the "~" operator) */ #ifdef CONFIG_KERNEL_COHERENCE #define SEGSTART_CACHED (ALIGN(64) | 0x20000000) -#define SEGSTART_UNCACHED (ALIGN(64) & ~0x20000000) +#define SEGSTART_UNCACHED (ALIGN(64) & 0xdfffffff) /* == ~0x20000000 */ #else #define SEGSTART_CACHED /**/ #define SEGSTART_UNCACHED /**/