提交 beec9cb8 编写于 作者: H Hongchen Zhang 提交者: openeuler-sync-bot

LoongArch: fix signal handler name changed

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6MUZX

--------------------------------

commit ad404010 ("entry: Add support for TIF_NOTIFY_SIGNAL")
changed then signal handler name from arch_do_signal to
arch_do_signal_or_restart,change the signal handler name for LoongArch
accordingly.
Signed-off-by: NHongchen Zhang <zhanghongchen@loongson.cn>
(cherry picked from commit e3874862)
上级 c757e12a
...@@ -853,11 +853,11 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) ...@@ -853,11 +853,11 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs)
signal_setup_done(ret, ksig, 0); signal_setup_done(ret, ksig, 0);
} }
void arch_do_signal(struct pt_regs *regs) void arch_do_signal_or_restart(struct pt_regs *regs, bool has_signal)
{ {
struct ksignal ksig; struct ksignal ksig;
if (get_signal(&ksig)) { if (has_signal && get_signal(&ksig)) {
/* Whee! Actually deliver the signal. */ /* Whee! Actually deliver the signal. */
handle_signal(&ksig, regs); handle_signal(&ksig, regs);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册