diff options
author | Michael Neuling <mikey@neuling.org> | 2008-07-02 06:06:37 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-07-03 08:58:11 +0200 |
commit | 6a274c08f2f4dfac7167bbd849621f3a2b55d424 (patch) | |
tree | 1bad45a11c1e436ffbcb84107783da0e423925f9 /arch/powerpc/kernel/signal.h | |
parent | powerpc: Fixup lwsync at runtime (diff) | |
download | linux-6a274c08f2f4dfac7167bbd849621f3a2b55d424.tar.xz linux-6a274c08f2f4dfac7167bbd849621f3a2b55d424.zip |
powerpc: Clean up copy_to/from_user for vsx and fpr
This merges and cleans up some of the ugly copy/to from user code
which is required for the new fpr and vsx layout in the thread_struct.
Also fixes some hard coded buffer sizes and removes a redundant
fpr_flush_to_thread.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/signal.h')
-rw-r--r-- | arch/powerpc/kernel/signal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/signal.h b/arch/powerpc/kernel/signal.h index 77efb3d5465a..28f4b9f5fe5e 100644 --- a/arch/powerpc/kernel/signal.h +++ b/arch/powerpc/kernel/signal.h @@ -24,6 +24,16 @@ extern int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); +extern unsigned long copy_fpr_to_user(void __user *to, + struct task_struct *task); +extern unsigned long copy_fpr_from_user(struct task_struct *task, + void __user *from); +#ifdef CONFIG_VSX +extern unsigned long copy_vsx_to_user(void __user *to, + struct task_struct *task); +extern unsigned long copy_vsx_from_user(struct task_struct *task, + void __user *from); +#endif #ifdef CONFIG_PPC64 |