Commit 938b9533 authored by Lauren Murphy's avatar Lauren Murphy Committed by Anas Nashif
Browse files

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: default avatarLauren Murphy <lauren.murphy@intel.com>
parent 56e1c506
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) */