[PATCH] i386: task_stack_page()

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>

authored by Al Viro and committed by Linus Torvalds 65e0fdff 07b047fc

+2 -2
+1 -1
arch/i386/kernel/process.c
··· 771 771 int count = 0; 772 772 if (!p || p == current || p->state == TASK_RUNNING) 773 773 return 0; 774 - stack_page = (unsigned long)p->thread_info; 774 + stack_page = (unsigned long)task_stack_page(p); 775 775 esp = p->thread.esp; 776 776 if (!stack_page || esp < stack_page || esp > top_esp+stack_page) 777 777 return 0;
+1 -1
include/asm-i386/processor.h
··· 574 574 #define task_pt_regs(task) \ 575 575 ({ \ 576 576 struct pt_regs *__regs__; \ 577 - __regs__ = (struct pt_regs *)(KSTK_TOP((task)->thread_info)-8); \ 577 + __regs__ = (struct pt_regs *)(KSTK_TOP(task_stack_page(task))-8); \ 578 578 __regs__ - 1; \ 579 579 }) 580 580