Use THREAD_SIZE instead of a hard constant.
Signed-off-by: Philippe De Muyter <[EMAIL PROTECTED]>
diff -r 9ed3c4dc013f arch/m68knommu/kernel/process.c
--- a/arch/m68knommu/kernel/process.c Wed Feb 21 13:02:17 2007 -0800
+++ b/arch/m68knommu/kernel/process.c Mon Mar 19 16:59:47 2007 +0100
@@ -377,7 +377,7 @@ unsigned long get_wchan(struct task_stru
fp = ((struct switch_stack *)p->thread.ksp)->a6;
do {
if (fp < stack_page+sizeof(struct thread_info) ||
- fp >= 8184+stack_page)
+ fp >= THREAD_SIZE-8+stack_page)
return 0;
pc = ((unsigned long *)fp)[1];
if (!in_sched_functions(pc))
--
Philippe De Muyter phdm at macqel dot be Tel +32 27029044
Macq Electronique SA rue de l'Aeronef 2 B-1140 Bruxelles Fax +32 27029077
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev