From 3bd404a4e2217e838ede12d71ebd83817ee7c5b0 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Tue, 22 May 2001 18:45:12 +0000 Subject: grab the vm mtx around exec_new_vmspace() --- sys/alpha/osf1/imgact_osf1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/alpha/osf1') 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; -- cgit v1.2.3