diff options
author | Michael Neuling <mikey@neuling.org> | 2008-07-28 11:13:14 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-30 01:26:54 -0400 |
commit | 1ac42ef844d7c0996f15c6f94f463ac94cb80818 (patch) | |
tree | a350db1d68190e87e999657de8d49767347c0459 /arch/powerpc | |
parent | 33b3f03dccc26c377e9689790ecc41079a0c9ca7 (diff) |
powerpc: Fix ptrace buffer size for VSX
Fix cut-and-paste error in the size setting for ptrace buffers for VSX.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/ptrace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index 6b66cd85b433..97d5dede8173 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c | |||
@@ -975,15 +975,13 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
975 | case PTRACE_GETVSRREGS: | 975 | case PTRACE_GETVSRREGS: |
976 | return copy_regset_to_user(child, &user_ppc_native_view, | 976 | return copy_regset_to_user(child, &user_ppc_native_view, |
977 | REGSET_VSX, | 977 | REGSET_VSX, |
978 | 0, (32 * sizeof(vector128) + | 978 | 0, 32 * sizeof(double), |
979 | sizeof(u32)), | ||
980 | (void __user *) data); | 979 | (void __user *) data); |
981 | 980 | ||
982 | case PTRACE_SETVSRREGS: | 981 | case PTRACE_SETVSRREGS: |
983 | return copy_regset_from_user(child, &user_ppc_native_view, | 982 | return copy_regset_from_user(child, &user_ppc_native_view, |
984 | REGSET_VSX, | 983 | REGSET_VSX, |
985 | 0, (32 * sizeof(vector128) + | 984 | 0, 32 * sizeof(double), |
986 | sizeof(u32)), | ||
987 | (const void __user *) data); | 985 | (const void __user *) data); |
988 | #endif | 986 | #endif |
989 | #ifdef CONFIG_SPE | 987 | #ifdef CONFIG_SPE |