projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c819914
)
[SPARC64]: Fix FPU saving in 64-bit signal handling.
author
David S. Miller
<davem@davemloft.net>
Thu, 3 Apr 2008 22:07:24 +0000
(15:07 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Apr 2008 22:07:24 +0000
(15:07 -0700)
The calculation of the FPU reg save area pointer
was wrong.
Based upon an OOPS report from Tom Callaway.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/signal.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc64/kernel/signal.c
b/arch/sparc64/kernel/signal.c
index 94a9d64208eee17126fb2ef996ad07f3ece660fd..9d51956e8e2f6737057c99c3d5e01e31dc9a67a3 100644
(file)
--- a/
arch/sparc64/kernel/signal.c
+++ b/
arch/sparc64/kernel/signal.c
@@
-357,7
+357,7
@@
static int invalid_frame_pointer(void __user *fp, int fplen)
static inline int
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;
int err = 0;