From 4964368c1b5a04aeb65dbae43141de2ecc9c9916 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 8 Jun 2003 02:45:28 -0700 Subject: [ALPHA] Fixup fallout from force_successful_syscall_return change. --- include/asm-alpha/ptrace.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/asm-alpha/ptrace.h b/include/asm-alpha/ptrace.h index be24be276069..e77230f32b45 100644 --- a/include/asm-alpha/ptrace.h +++ b/include/asm-alpha/ptrace.h @@ -71,15 +71,8 @@ struct switch_stack { #define instruction_pointer(regs) ((regs)->pc) extern void show_regs(struct pt_regs *); -/* - * TODO: if kernel-only threads do not have a dummy pt_regs structure at the - * top of the stack, this would cause kernel stack corruption. Either check - * first that we're not dealing with a kernel thread or change the kernel - * stacks to allocate a dummy pt_regs structure. - */ - -#define alpha_task_regs(task) ((struct pt_regs *) \ - ((long) task->thread_info + PAGE_SIZE) - 1) +#define alpha_task_regs(task) \ + ((struct pt_regs *) ((long) (task)->thread_info + 2*PAGE_SIZE) - 1) #define force_successful_syscall_return() (alpha_task_regs(current)->r0 = 0) -- cgit v1.2.3