aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/osf1
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2002-02-07 20:58:47 +0000
committerJulian Elischer <julian@FreeBSD.org>2002-02-07 20:58:47 +0000
commit079b7badea4419a07a141547b7323f4c168f40fd (patch)
treeb267ad497d8d81c2c79c107443dabe850da2126b /sys/alpha/osf1
parent3daf63fc50f59552e7ba4ce58391ff0a5480a4f5 (diff)
downloadsrc-079b7badea4419a07a141547b7323f4c168f40fd.tar.gz
src-079b7badea4419a07a141547b7323f4c168f40fd.zip
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,
Notes
Notes: svn path=/head/; revision=90361
Diffstat (limited to 'sys/alpha/osf1')
-rw-r--r--sys/alpha/osf1/imgact_osf1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c
index 9aae801941f6..9eebe77528c5 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);