Commit b72cc2e7 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc: Use task_stack_page() in current_pt_regs()

Change current_pt_regs() to use task_stack_page() rather than
current_thread_info() so that it keeps working once we enable
THREAD_INFO_IN_TASK.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
[mpe: Split out of large patch]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 37333040
...@@ -157,7 +157,7 @@ extern int ptrace_put_reg(struct task_struct *task, int regno, ...@@ -157,7 +157,7 @@ extern int ptrace_put_reg(struct task_struct *task, int regno,
unsigned long data); unsigned long data);
#define current_pt_regs() \ #define current_pt_regs() \
((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1) ((struct pt_regs *)((unsigned long)task_stack_page(current) + THREAD_SIZE) - 1)
/* /*
* We use the least-significant bit of the trap field to indicate * We use the least-significant bit of the trap field to indicate
* whether we have saved the full set of registers, or only a * whether we have saved the full set of registers, or only a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment