diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-05-22 18:45:12 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-05-22 18:45:12 +0000 |
commit | 3bd404a4e2217e838ede12d71ebd83817ee7c5b0 (patch) | |
tree | 32b3ca5cc596234cbc191cf7fe480e227ba1d289 /sys/alpha/osf1 | |
parent | 6ce76643aa6a03cb46eb8c60e5d9c67d2fe19171 (diff) | |
download | src-3bd404a4e2217e838ede12d71ebd83817ee7c5b0.tar.gz src-3bd404a4e2217e838ede12d71ebd83817ee7c5b0.zip |
grab the vm mtx around exec_new_vmspace()
Notes
Notes:
svn path=/head/; revision=77007
Diffstat (limited to 'sys/alpha/osf1')
-rw-r--r-- | sys/alpha/osf1/imgact_osf1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c index d6159cb211b5..194140bd9f80 100644 --- a/sys/alpha/osf1/imgact_osf1.c +++ b/sys/alpha/osf1/imgact_osf1.c @@ -175,12 +175,14 @@ exec_osf1_imgact(struct image_params *imgp) /* * Destroy old process VM and create a new one (with a new stack). */ + mtx_lock(&vm_mtx); exec_new_vmspace(imgp); /* * The vm space can now be changed. */ vmspace = imgp->proc->p_vmspace; + mtx_unlock(&vm_mtx); imgp->interpreted = 0; imgp->proc->p_sysent = &osf1_sysvec; |