aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_64.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-03-08 22:32:05 -0500
committerPaul Mackerras <paulus@samba.org>2006-03-08 22:32:05 -0500
commit516450179454de9e689e0a53ed8f34b896e8651c (patch)
tree78eae2f77de6cd39b18c7393fc5854456fc3fb1f /arch/powerpc/kernel/signal_64.c
parent6749c5507388f3fc3719f57a54b540ee83f6661a (diff)
parent0d514f040ac6629311974889d5b96bcf21c6461a (diff)
Merge ../linux-2.6
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
-rw-r--r--arch/powerpc/kernel/signal_64.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c
index 59b9c9cdd6a9..47f910380a6a 100644
--- a/arch/powerpc/kernel/signal_64.c
+++ b/arch/powerpc/kernel/signal_64.c
@@ -116,14 +116,7 @@ static long setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
116 err |= __put_user(0, &sc->v_regs); 116 err |= __put_user(0, &sc->v_regs);
117#endif /* CONFIG_ALTIVEC */ 117#endif /* CONFIG_ALTIVEC */
118 err |= __put_user(&sc->gp_regs, &sc->regs); 118 err |= __put_user(&sc->gp_regs, &sc->regs);
119 if (!FULL_REGS(regs)) { 119 WARN_ON(!FULL_REGS(regs));
120 /* Zero out the unsaved GPRs to avoid information
121 leak, and set TIF_SAVE_NVGPRS to ensure that the
122 registers do actually get saved later. */
123 memset(&regs->gpr[14], 0, 18 * sizeof(unsigned long));
124 set_thread_flag(TIF_SAVE_NVGPRS);
125 current_thread_info()->nvgprs_frame = &sc->gp_regs;
126 }
127 err |= __copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE); 120 err |= __copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE);
128 err |= __copy_to_user(&sc->fp_regs, &current->thread.fpr, FP_REGS_SIZE); 121 err |= __copy_to_user(&sc->fp_regs, &current->thread.fpr, FP_REGS_SIZE);
129 err |= __put_user(signr, &sc->signal); 122 err |= __put_user(signr, &sc->signal);