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>
This commit is contained in:
parent
33b3f03dcc
commit
1ac42ef844
|
@ -975,15 +975,13 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
||||||
case PTRACE_GETVSRREGS:
|
case PTRACE_GETVSRREGS:
|
||||||
return copy_regset_to_user(child, &user_ppc_native_view,
|
return copy_regset_to_user(child, &user_ppc_native_view,
|
||||||
REGSET_VSX,
|
REGSET_VSX,
|
||||||
0, (32 * sizeof(vector128) +
|
0, 32 * sizeof(double),
|
||||||
sizeof(u32)),
|
|
||||||
(void __user *) data);
|
(void __user *) data);
|
||||||
|
|
||||||
case PTRACE_SETVSRREGS:
|
case PTRACE_SETVSRREGS:
|
||||||
return copy_regset_from_user(child, &user_ppc_native_view,
|
return copy_regset_from_user(child, &user_ppc_native_view,
|
||||||
REGSET_VSX,
|
REGSET_VSX,
|
||||||
0, (32 * sizeof(vector128) +
|
0, 32 * sizeof(double),
|
||||||
sizeof(u32)),
|
|
||||||
(const void __user *) data);
|
(const void __user *) data);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SPE
|
#ifdef CONFIG_SPE
|
||||||
|
|
Loading…
Reference in New Issue