Skip to contentSkip to conversation

i386: task_stack_page()

PATCH In review Al Viro 1 participant 1 message Jan 3, 2006 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 10/50 i386: task_stack_page()

References: <[email protected]>
In-Reply-To: <[email protected]>

---

 arch/i386/kernel/process.c   |    2 +-
 include/asm-i386/processor.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

ab4d196bff8397a68d48f2a74f4726cbe759415e

arch/i386/kernel/process.c +1 -1
index 7765f3a..e12909b 100644
@@ -782,7 +782,7 @@ unsigned long get_wchan(struct task_stru
 	int count = 0;
 	if (!p || p == current || p->state == TASK_RUNNING)
 		return 0;
-	stack_page = (unsigned long)p->thread_info;
+	stack_page = (unsigned long)task_stack_page(p);
 	esp = p->thread.esp;
 	if (!stack_page || esp < stack_page || esp > top_esp+stack_page)
 		return 0;
include/asm-i386/processor.h +1 -1
index 84f2fd1..f7b4983 100644
@@ -570,7 +570,7 @@ unsigned long get_wchan(struct task_stru
 #define task_pt_regs(task)                                             \
 ({                                                                     \
        struct pt_regs *__regs__;                                       \
-       __regs__ = (struct pt_regs *)(KSTK_TOP((task)->thread_info)-8); \
+       __regs__ = (struct pt_regs *)(KSTK_TOP(task_stack_page(task))-8); \
        __regs__ - 1;                                                   \
 })
 
Signature · 1 line
0.99.9.GIT