X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fprocessor.h;h=425b7b6d28cbba8e99ec8c1bbd9af578b77752df;hb=b09b845ca6724c3bbdc00c0cb2313258c7189ca9;hp=12a14a5bbe12a4811ed81e464bdb3e4dba2823b9;hpb=37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/asm-alpha/processor.h b/include/asm-alpha/processor.h index 12a14a5..425b7b6 100644 --- a/include/asm-alpha/processor.h +++ b/include/asm-alpha/processor.h @@ -52,16 +52,7 @@ extern long kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); unsigned long get_wchan(struct task_struct *p); -/* See arch/alpha/kernel/ptrace.c for details. */ -#define PT_REG(reg) \ - (PAGE_SIZE*2 - sizeof(struct pt_regs) + offsetof(struct pt_regs, reg)) - -#define SW_REG(reg) \ - (PAGE_SIZE*2 - sizeof(struct pt_regs) - sizeof(struct switch_stack) \ - + offsetof(struct switch_stack, reg)) - -#define KSTK_EIP(tsk) \ - (*(unsigned long *)(PT_REG(pc) + (unsigned long) ((tsk)->thread_info))) +#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) \ ((tsk) == current ? rdusp() : task_thread_info(tsk)->pcb.usp)