From 36a56e7a8f8b1a0640eebe6387b5e457b40759ba Mon Sep 17 00:00:00 2001 From: Wayne Ren Date: Sun, 11 Aug 2019 13:25:59 +0800 Subject: [PATCH] arch: arc: fix a bug when CONFIG_SMP is enabled the bug is forgot to fixes, when CONFIG_SMP is enabled, it will cause build error Signed-off-by: Wayne Ren --- arch/arc/core/fault_s.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arc/core/fault_s.S b/arch/arc/core/fault_s.S index 54a4249a123..e1bc1e95780 100644 --- a/arch/arc/core/fault_s.S +++ b/arch/arc/core/fault_s.S @@ -302,9 +302,10 @@ exc_nest_handle: st _CAUSE_RIRQ, [r2, _thread_offset_to_relinquish_cause] /* note: Ok to use _CAUSE_RIRQ since everything is saved */ - ld_s r2, [r1, _kernel_offset_to_ready_q_cache] + mov r2, r0 +#ifndef CONFIG_SMP st_s r2, [r1, _kernel_offset_to_current] - +#endif /* clear AE bit to forget this was an exception */ lr r3, [_ARC_V2_STATUS32] and r3,r3,(~_ARC_V2_STATUS32_AE)