[PATCH] alpha: task_stack_page()
use task_stack_page() for accesses to stack page of task in alpha-specific parts of tree Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -76,7 +76,7 @@ struct switch_stack {
|
||||
extern void show_regs(struct pt_regs *);
|
||||
|
||||
#define alpha_task_regs(task) \
|
||||
((struct pt_regs *) ((long) (task)->thread_info + 2*PAGE_SIZE) - 1)
|
||||
((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
|
||||
|
||||
#define force_successful_syscall_return() (alpha_task_regs(current)->r0 = 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user