浏览代码

signal/unicore32: Use send_sig_fault where appropriate

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Eric W. Biederman 7 年之前
父节点
当前提交
5ee527d7ce
共有 1 个文件被更改,包括 3 次插入9 次删除
  1. 3 9
      arch/unicore32/kernel/fpu-ucf64.c

+ 3 - 9
arch/unicore32/kernel/fpu-ucf64.c

@@ -54,14 +54,6 @@
  */
  */
 void ucf64_raise_sigfpe(struct pt_regs *regs)
 void ucf64_raise_sigfpe(struct pt_regs *regs)
 {
 {
-	siginfo_t info;
-
-	clear_siginfo(&info);
-
-	info.si_signo = SIGFPE;
-	info.si_code = FPE_FLTUNK;
-	info.si_addr = (void __user *)(instruction_pointer(regs) - 4);
-
 	/*
 	/*
 	 * This is the same as NWFPE, because it's not clear what
 	 * This is the same as NWFPE, because it's not clear what
 	 * this is used for
 	 * this is used for
@@ -69,7 +61,9 @@ void ucf64_raise_sigfpe(struct pt_regs *regs)
 	current->thread.error_code = 0;
 	current->thread.error_code = 0;
 	current->thread.trap_no = 6;
 	current->thread.trap_no = 6;
 
 
-	send_sig_info(SIGFPE, &info, current);
+	send_sig_fault(SIGFPE, FPE_FLTUNK,
+		       (void __user *)(instruction_pointer(regs) - 4),
+		       current);
 }
 }
 
 
 /*
 /*