]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
csky: fix csky_cmpxchg_fixup not working
authorYang Li <yang.li85200@gmail.com>
Wed, 16 Oct 2024 09:56:26 +0000 (17:56 +0800)
committerGuo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Sun, 19 Oct 2025 06:42:40 +0000 (02:42 -0400)
commit809ef03d6d21d5fea016bbf6babeec462e37e68c
treef63097046fca70480213e90e55a826dfbac73b63
parent3a8660878839faadb4f1a6dd72c3179c1df56787
csky: fix csky_cmpxchg_fixup not working

In the csky_cmpxchg_fixup function, it is incorrect to use the global
variable csky_cmpxchg_stw to determine the address where the exception
occurred.The global variable csky_cmpxchg_stw stores the opcode at the
time of the exception, while &csky_cmpxchg_stw shows the address where
the exception occurred.

Signed-off-by: Yang Li <yang.li85200@gmail.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/mm/fault.c