diff options
author | Michael Neuling <mikey@neuling.org> | 2008-07-02 00:06:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-07-03 02:58:11 -0400 |
commit | 6a274c08f2f4dfac7167bbd849621f3a2b55d424 (patch) | |
tree | 1bad45a11c1e436ffbcb84107783da0e423925f9 /arch/powerpc/kernel/signal.h | |
parent | 2d1b2027626d5151fff8ef7c06ca8e7876a1a510 (diff) |
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, | |||
24 | siginfo_t *info, sigset_t *oldset, | 24 | siginfo_t *info, sigset_t *oldset, |
25 | struct pt_regs *regs); | 25 | struct pt_regs *regs); |
26 | 26 | ||
27 | extern unsigned long copy_fpr_to_user(void __user *to, | ||
28 | struct task_struct *task); | ||
29 | extern unsigned long copy_fpr_from_user(struct task_struct *task, | ||
30 | void __user *from); | ||
31 | #ifdef CONFIG_VSX | ||
32 | extern unsigned long copy_vsx_to_user(void __user *to, | ||
33 | struct task_struct *task); | ||
34 | extern unsigned long copy_vsx_from_user(struct task_struct *task, | ||
35 | void __user *from); | ||
36 | #endif | ||
27 | 37 | ||
28 | #ifdef CONFIG_PPC64 | 38 | #ifdef CONFIG_PPC64 |
29 | 39 | ||