summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
committerluoqi <luoqi@FreeBSD.org>1999-02-19 14:25:37 +0000
commit082d37c1acacd0403f5fb2883c7a0203c86baa10 (patch)
tree43d75fbf23c63e0d76e25bdb477e9f3abea2d101 /sys/kern/kern_exec.c
parent34a83c58695826a346644074e092787f655b3394 (diff)
downloadFreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.zip
FreeBSD-src-082d37c1acacd0403f5fb2883c7a0203c86baa10.tar.gz
Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). This
is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox <alc@cs.rice.edu> Matthew Dillion <dillon@apollo.backplane.com>
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index bb69fb6..f961a3a 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.94 1999/01/27 21:49:55 dillon Exp $
+ * $Id: kern_exec.c,v 1.95 1999/01/28 00:57:47 dillon Exp $
*/
#include <sys/param.h>
@@ -443,7 +443,7 @@ exec_new_vmspace(imgp)
if (vmspace->vm_refcnt == 1) {
if (vmspace->vm_shm)
shmexit(imgp->proc);
- pmap_remove_pages(&vmspace->vm_pmap, 0, VM_MAXUSER_ADDRESS);
+ pmap_remove_pages(vmspace_pmap(vmspace), 0, VM_MAXUSER_ADDRESS);
vm_map_remove(map, 0, VM_MAXUSER_ADDRESS);
} else {
vmspace_exec(imgp->proc);
OpenPOWER on IntegriCloud