From b5eb64d6f0fccb72419da5552deee22cb6117fac Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 7 Feb 2002 20:58:47 +0000 Subject: Pre-KSE/M3 commit. this is a low-functionality change that changes the kernel to access the main thread of a process via the linked list of threads rather than assuming that it is embedded in the process. It IS still embeded there but remove all teh code that assumes that in preparation for the next commit which will actually move it out. Reviewed by: peter@freebsd.org, gallatin@cs.duke.edu, benno rice, --- sys/alpha/osf1/imgact_osf1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/alpha/osf1') diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c index 9aae801..9eebe77 100644 --- a/sys/alpha/osf1/imgact_osf1.c +++ b/sys/alpha/osf1/imgact_osf1.c @@ -137,7 +137,7 @@ exec_osf1_imgact(struct image_params *imgp) ndp = (struct nameidata *)malloc(sizeof(struct nameidata), M_TEMP, M_WAITOK); NDINIT(ndp, LOOKUP, LOCKLEAF | FOLLOW | SAVENAME, UIO_SYSSPACE, - "/compat/osf1/sbin/loader", &imgp->proc->p_thread); + "/compat/osf1/sbin/loader", FIRST_THREAD_IN_PROC(imgp->proc)); error = namei(ndp); if (error) { uprintf("imgact_osf1: can't read /compat/osf1/sbin/loader\n"); @@ -150,7 +150,7 @@ exec_osf1_imgact(struct image_params *imgp) } imgp->vp = ndp->ni_vp; error = exec_map_first_page(imgp); - VOP_UNLOCK(imgp->vp, 0, &imgp->proc->p_thread); + VOP_UNLOCK(imgp->vp, 0, FIRST_THREAD_IN_PROC(imgp->proc)); osf_auxargs->loader = "/compat/osf1/sbin/loader"; } @@ -249,7 +249,7 @@ exec_osf1_imgact(struct image_params *imgp) free(imgp->auxargs, M_TEMP); if (ndp) { VOP_CLOSE(ndp->ni_vp, FREAD, imgp->proc->p_ucred, - &imgp->proc->p_thread); + FIRST_THREAD_IN_PROC(imgp->proc)); vrele(ndp->ni_vp); } return(error); -- cgit v1.1