From: Kenn H. <ke...@us...> - 2001-02-21 00:18:07
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel In directory usw-pr-cvs1:/tmp/cvs-serv22252 Modified Files: process.c Log Message: Changes to copy_thread: o display correct PID (not passed in argument list anymore in 2.4) o debugging message to allow me to track when threads actually start executing Index: process.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel/process.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- process.c 2001/02/05 00:05:08 1.4 +++ process.c 2001/02/21 00:19:05 1.5 @@ -97,8 +97,8 @@ /* Defined in entry.S */ extern void ret_from_syscall(void); -int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, - unsigned long unused, +int copy_thread(int unused1, unsigned long clone_flags, unsigned long usp, + unsigned long unused2, struct task_struct *p, struct pt_regs *regs) { struct new_thread_stack *child_stack; @@ -106,7 +106,7 @@ void *stack_top; printk("copy_thread: creating new thread: pid %d, task 0x%08lx, usp 0x%08lx\n", - nr, (unsigned long)p, usp); + p->pid, (unsigned long)p, usp); stack_top = ((union task_union *)p) + 1; @@ -174,7 +174,8 @@ /* In child. At this point SP points to the very top of our kernel stack, so we cannot pop anything off. That means that we can never return from here. */ -/* printk("kernel_thread: child\n"); */ + printk("kernel_thread: calling thread function at %08lx\n", + (unsigned long)fn); kernel_thread_exit(fn(arg)); } |