[uClinux-dev] [PATCH] m68knommu/kernel/process.c : missing THREAD_SIZE

Philippe De Muyter phdm at macqel.be
Mon Mar 19 11:03:35 EST 2007


Use THREAD_SIZE instead of a hard constant.

Signed-off-by: Philippe De Muyter <phdm at macqel.be>

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


More information about the uClinux-dev mailing list