Skip to contentSkip to conversation

arm: end_of_stack()

PATCH In review Al Viro 1 participant 1 message Jan 3, 2006

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 33/50 arm: end_of_stack()

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

---

 arch/arm/kernel/process.c |    2 +-
 arch/arm/kernel/traps.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

886253feedc3c113e137755e8d9c9052eaea6376

arch/arm/kernel/process.c +1 -1
index 6c82d6b..8c62909 100644
@@ -460,7 +460,7 @@ unsigned long get_wchan(struct task_stru
 	if (!p || p == current || p->state == TASK_RUNNING)
 		return 0;
 
-	stack_start = (unsigned long)(p->thread_info + 1);
+	stack_start = (unsigned long)end_of_stack(p);
 	stack_end = ((unsigned long)p->thread_info) + THREAD_SIZE;
 
 	fp = thread_saved_fp(p);
arch/arm/kernel/traps.c +1 -1
index 45e9ea6..f7e733c 100644
@@ -165,7 +165,7 @@ static void dump_backtrace(struct pt_reg
 	} else if (verify_stack(fp)) {
 		printk("invalid frame pointer 0x%08x", fp);
 		ok = 0;
-	} else if (fp < (unsigned long)(tsk->thread_info + 1))
+	} else if (fp < (unsigned long)end_of_stack(tsk))
 		printk("frame pointer underflow");
 	printk("\n");
 
Signature · 1 line
0.99.9.GIT