X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fptrace.h;h=9933b8b3612ee2a6173d22ba5bd441d07c80eab5;hb=c226951b93f7cd7c3a10b17384535b617bd43fd0;hp=072375c135b4a008799173b655837fb39c3d2b91;hpb=383f9749505cef0a30dbd7109db7fe469aa64753;p=~andy%2Flinux diff --git a/include/asm-alpha/ptrace.h b/include/asm-alpha/ptrace.h index 072375c135b..9933b8b3612 100644 --- a/include/asm-alpha/ptrace.h +++ b/include/asm-alpha/ptrace.h @@ -75,10 +75,10 @@ struct switch_stack { #define profile_pc(regs) instruction_pointer(regs) extern void show_regs(struct pt_regs *); -#define alpha_task_regs(task) \ - ((struct pt_regs *) ((long) (task)->thread_info + 2*PAGE_SIZE) - 1) +#define task_pt_regs(task) \ + ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1) -#define force_successful_syscall_return() (alpha_task_regs(current)->r0 = 0) +#define force_successful_syscall_return() (task_pt_regs(current)->r0 = 0) #endif