From 938b9533c727d05e48666decc2c1006b8c34009c Mon Sep 17 00:00:00 2001 From: Lauren Murphy Date: Tue, 18 Oct 2022 19:33:56 -0700 Subject: [PATCH] intel: adsp: cavs: fix NO_OPTIMIZATION boot failure Fixes boot failure on CAVS platforms with CONFIG_NO_OPTIMIZATIONS=y by moving z_soc_mp_asm_entry into .text linker section to ensure it is copied to SRAM. Signed-off-by: Lauren Murphy --- soc/xtensa/intel_adsp/common/multiprocessing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soc/xtensa/intel_adsp/common/multiprocessing.c b/soc/xtensa/intel_adsp/common/multiprocessing.c index e8b33b395d5..da17450cacb 100644 --- a/soc/xtensa/intel_adsp/common/multiprocessing.c +++ b/soc/xtensa/intel_adsp/common/multiprocessing.c @@ -63,7 +63,8 @@ bool soc_cpus_active[CONFIG_MP_MAX_NUM_CPUS]; * Note that alignment is absolutely required: the IDC protocol passes * only the upper 30 bits of the address to the second CPU. */ -__asm__(".align 4 \n\t" +__asm__(".section .text.z_soc_mp_asm_entry, \"x\" \n\t" + ".align 4 \n\t" ".global z_soc_mp_asm_entry \n\t" "z_soc_mp_asm_entry: \n\t" " movi a0, 0x4002f \n\t" /* WOE | UM | INTLEVEL(max) */