提交 7c3cce97 编写于 作者: D David S. Miller

[SPARC64]: Fix FPU saving in 64-bit signal handling.

The calculation of the FPU reg save area pointer
was wrong.

Based upon an OOPS report from Tom Callaway.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c819914e
...@@ -357,7 +357,7 @@ static int invalid_frame_pointer(void __user *fp, int fplen) ...@@ -357,7 +357,7 @@ static int invalid_frame_pointer(void __user *fp, int fplen)
static inline int static inline int
save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu)
{ {
unsigned long *fpregs = (unsigned long *)(regs+1); unsigned long *fpregs = current_thread_info()->fpregs;
unsigned long fprs; unsigned long fprs;
int err = 0; int err = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册