Hi Philippe,

Philippe De Muyter wrote:
Use THREAD_SIZE instead of a hard constant.

Signed-off-by: Philippe De Muyter <[EMAIL PROTECTED]>

Applied, thanks.

Regards
Greg



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))

--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
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

Reply via email to