]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Fix and cleanup csr_era handling in do_ri()
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 26 Sep 2022 14:33:39 +0000 (22:33 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Sep 2022 02:15:00 +0000 (10:15 +0800)
commit3c7ea82e6d6354f2a9969747218d500d78165ded
treeb08e7b19c316b38fcf878a78f8324c966f4a7e1f
parent33ac888713e501530f6b4baeef66080f4e5176f1
LoongArch: Fix and cleanup csr_era handling in do_ri()

We don't emulate reserved instructions and just send a signal to the
current process now. So we don't need to call compute_return_era() to
add 4 (point to the next instruction) to csr_era in pt_regs. RA/ERA's
backup/restore is cleaned up as well.

Signed-off-by: Jun Yi <yijun@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/traps.c