Date: Fri, 5 Apr 2002 14:41:31 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 9141 for review Message-ID: <200204052241.g35MfVe10904@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9141 Change 9141 by jhb@jhb_laptop on 2002/04/05 14:40:52 Integ from jhb_proc: use a proc pointer. Affected files ... ... //depot/projects/smpng/sys/compat/pecoff/imgact_pecoff.c#9 integrate Differences ... ==== //depot/projects/smpng/sys/compat/pecoff/imgact_pecoff.c#9 (text+ko) ==== @@ -163,7 +163,8 @@ off_t limit) { register struct ucred *cred = td->td_ucred; - register struct vmspace *vm = td->td_proc->p_vmspace; + struct proc *p = td->td_proc; + register struct vmspace *vm = p->p_vmspace; int error; #ifdef PECOFF_DEBUG struct vm_map *map; @@ -173,9 +174,9 @@ #endif if (ctob((UAREA_PAGES+KSTACK_PAGES) + vm->vm_dsize + vm->vm_ssize) >= limit) return (EFAULT); - PROC_LOCK(td->td_proc); - fill_kinfo_proc(td->td_proc, &td->td_proc->p_uarea->u_kproc); - PROC_UNLOCK(td-td_proc); + PROC_LOCK(p); + fill_kinfo_proc(p, &p->p_uarea->u_kproc); + PROC_UNLOCK(p); #if PECOFF_DEBUG fill_regs(td, ®s); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204052241.g35MfVe10904>