lkml.org 
[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3 18/24] C6X: ptrace support
Date
On Tuesday 27 September 2011, Mark Salter wrote:
> + case PTRACE_GETREGS:
> + return copy_regset_to_user(child, &user_c6x_native_view,
> + REGSET_GPR,
> + 0, NR_PTREGS * sizeof(long),
> + datap);
> +
> + /*
> + * set all gp regs in the child.
> + */
> + case PTRACE_SETREGS:
> + return copy_regset_from_user(child, &user_c6x_native_view,
> + REGSET_GPR,
> + 0, NR_PTREGS * sizeof(long),
> + datap);
> +

I believe that you can let this be handled by the common
ptrace_request() function if you provide the necessary code for
setting CONFIG_HAVE_ARCH_TRACEHOOK, which is preferred now.

Arnd


\
 
 \ /
  Last update: 2011-09-28 15:59    [W:0.286 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site