diff options
| author | Richard Henderson <rth@kanga.twiddle.net> | 2003-06-08 02:45:28 -0700 |
|---|---|---|
| committer | Richard Henderson <rth@kanga.twiddle.net> | 2003-06-08 02:45:28 -0700 |
| commit | 4964368c1b5a04aeb65dbae43141de2ecc9c9916 (patch) | |
| tree | a70966a4ec4d01e811d269c42f696df46778f0b2 /include | |
| parent | 72001697913991e656d62a333d7f0510b8a8fed1 (diff) | |
[ALPHA] Fixup fallout from force_successful_syscall_return change.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-alpha/ptrace.h | 11 |
1 files changed, 2 insertions, 9 deletions
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) |
