Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144902 Details for
Bug 207850
ppc{32,64} signals corrupt $fpscr register
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix FPSCR handling on ppc64 kernels
linux-2.6.9-ppc64-signal-fpscr.patch (text/plain), 1.71 KB, created by
David Howells
on 2007-01-05 13:20:39 UTC
(
hide
)
Description:
Patch to fix FPSCR handling on ppc64 kernels
Filename:
MIME Type:
Creator:
David Howells
Created:
2007-01-05 13:20:39 UTC
Size:
1.71 KB
patch
obsolete
>--- linux-2.6.9/arch/ppc64/kernel/signal.c.orig 2007-01-05 11:00:38.000000000 +0000 >+++ linux-2.6.9/arch/ppc64/kernel/signal.c 2007-01-05 11:03:24.000000000 +0000 >@@ -133,9 +133,6 @@ static long setup_sigcontext(struct sigc > > flush_fp_to_thread(current); > >- /* Make sure signal doesn't get spurrious FP exceptions */ >- current->thread.fpscr = 0; >- > #ifdef CONFIG_ALTIVEC > err |= __put_user(v_regs, &sc->v_regs); > >@@ -414,6 +411,9 @@ static void setup_rt_frame(int signr, st > if (err) > goto badframe; > >+ /* Make sure signal handler doesn't get spurious FP exceptions */ >+ current->thread.fpscr = 0; >+ > /* Set up to return from userspace. */ > err |= setup_trampoline(__NR_rt_sigreturn, &frame->tramp[0]); > if (err) >--- linux-2.6.9/arch/ppc64/kernel/signal32.c.orig 2007-01-05 10:50:14.000000000 +0000 >+++ linux-2.6.9/arch/ppc64/kernel/signal32.c 2007-01-05 11:06:43.000000000 +0000 >@@ -143,8 +143,6 @@ static int save_user_regs(struct pt_regs > if (err) > return 1; > >- current->thread.fpscr = 0; /* turn off all fp exceptions */ >- > #ifdef CONFIG_ALTIVEC > /* save altivec registers */ > if (current->thread.used_vr) { >@@ -685,6 +683,8 @@ static void handle_rt_signal32(unsigned > if (save_user_regs(regs, frame, __NR_rt_sigreturn)) > goto badframe; > >+ current->thread.fpscr = 0; /* turn off all fp exceptions */ >+ > if (put_user(regs->gpr[1], (u32 __user *)newsp)) > goto badframe; > regs->gpr[1] = (unsigned long) newsp; >@@ -853,6 +853,8 @@ static void handle_signal32(unsigned lon > if (save_user_regs(regs, &frame->mctx, __NR_sigreturn)) > goto badframe; > >+ current->thread.fpscr = 0; /* turn off all fp exceptions */ >+ > if (put_user(regs->gpr[1], (u32 __user *)newsp)) > goto badframe; > regs->gpr[1] = (unsigned long) newsp;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207850
: 144902