diff options
author | Roland McGrath <roland@redhat.com> | 2008-07-27 08:51:35 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-28 08:30:49 +0200 |
commit | f1ba12856b7a7d43e495e216bc91e6bbf7aac383 (patch) | |
tree | dd222ece64f06306ef85272654b6251a29632739 /include/asm-powerpc/ptrace.h | |
parent | powerpc: Make syscall tracing use tracehook.h helpers (diff) | |
download | linux-f1ba12856b7a7d43e495e216bc91e6bbf7aac383.tar.xz linux-f1ba12856b7a7d43e495e216bc91e6bbf7aac383.zip |
powerpc: Add asm/syscall.h with the tracehook entry points
Add asm/syscall.h for powerpc with all the required entry points.
This will allow arch-independent tracing code for system calls.
BenH: Fixed up use of regs->trap to properly mask low bit
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/ptrace.h')
-rw-r--r-- | include/asm-powerpc/ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/ptrace.h b/include/asm-powerpc/ptrace.h index 3d6e31024e56..734e0754fb9b 100644 --- a/include/asm-powerpc/ptrace.h +++ b/include/asm-powerpc/ptrace.h @@ -84,6 +84,7 @@ struct pt_regs { #ifndef __ASSEMBLY__ #define instruction_pointer(regs) ((regs)->nip) +#define user_stack_pointer(regs) ((regs)->gpr[1]) #define regs_return_value(regs) ((regs)->gpr[3]) #ifdef CONFIG_SMP |