Commit 801c053f authored by Wayne Ren's avatar Wayne Ren Committed by Carles Cufi
Browse files

arch: arc: fix the bug of firq stack setup for slave cores



r0 is the slave core number, needs to be saved before call
z_arc_firq_stack_set and be restored later.

Signed-off-by: default avatarWayne Ren <wei.ren@synopsys.com>
parent 4b2c413e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -145,7 +145,9 @@ _slave_core_wait:
	st 0, [arc_cpu_wake_flag]

#if defined(CONFIG_ARC_FIRQ_STACK)
	push r0
	jl z_arc_firq_stack_set
	pop r0
#endif
	j z_arc_slave_start