]> git.ipfire.org Git - people/ms/linux.git/commit
sparc: We need to implement arch_ptrace_stop().
authorDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 07:24:42 +0000 (23:24 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:42 +0000 (17:52 -0700)
commitf412f397ce0080715f82c22d24b6fda240abfa07
tree6056923bf40f555ae0243494c37a5981ecca7195
parentb9a94094113f73585f651143113c0c2478ebf34e
sparc: We need to implement arch_ptrace_stop().

[ Upstream commit 878a5535957b563c447d32866a9e606c55fef091 ]

In order to always provide fully synchronized state to the debugger,
we might need to do a synchronize_user_stack().

A pair of hooks, arch_ptrace_stop_needed() and arch_ptrace_stop(),
exist to handle this kind of situation.  It was created for
the sake of IA64.

Use them, to flush the kernel side cached register windows
to the user stack, when necessary.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/include/asm/ptrace_32.h
arch/sparc/include/asm/ptrace_64.h