From owner-p4-projects Fri Apr 5 14:41:37 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 75E6737B41F; Fri, 5 Apr 2002 14:41:32 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D4B4137B41E for ; Fri, 5 Apr 2002 14:41:31 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g35MfVe10904 for perforce@freebsd.org; Fri, 5 Apr 2002 14:41:31 -0800 (PST) (envelope-from jhb@freebsd.org) Date: Fri, 5 Apr 2002 14:41:31 -0800 (PST) Message-Id: <200204052241.g35MfVe10904@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 9141 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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