diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:54 -0800 |
commit | 04fe6faf10c310480151667e7fe3e06df4208a8e (patch) | |
tree | 14dc22d1bd96e438a71d9434b07d9e49d072ea9a /include/asm-xtensa/ptrace.h | |
parent | 30af7120fe6cfa8cf9ccd0626474fa1cd6d2bd59 (diff) | |
download | linux-04fe6faf10c310480151667e7fe3e06df4208a8e.tar.gz linux-04fe6faf10c310480151667e7fe3e06df4208a8e.tar.bz2 linux-04fe6faf10c310480151667e7fe3e06df4208a8e.zip |
[PATCH] xtensa: task_pt_regs(), task_stack_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-xtensa/ptrace.h')
-rw-r--r-- | include/asm-xtensa/ptrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-xtensa/ptrace.h b/include/asm-xtensa/ptrace.h index aa4fd7fb3ce7..a5ac71a5205c 100644 --- a/include/asm-xtensa/ptrace.h +++ b/include/asm-xtensa/ptrace.h @@ -113,8 +113,8 @@ struct pt_regs { }; #ifdef __KERNEL__ -# define xtensa_pt_regs(tsk) ((struct pt_regs*) \ - (((long)(tsk)->thread_info + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4)) - 1) +# define task_pt_regs(tsk) ((struct pt_regs*) \ + (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1) # define user_mode(regs) (((regs)->ps & 0x00000020)!=0) # define instruction_pointer(regs) ((regs)->pc) extern void show_regs(struct pt_regs *); |