summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-04-03 19:07:05 +0000
committeralc <alc@FreeBSD.org>2010-04-03 19:07:05 +0000
commit7530e331f2073e0ef9872e64aef08abe3cfa0df8 (patch)
treed0f84b79872a1aa6f2a3e8381d9c98f65f45c3fb /sys/kern
parentb149db7dce4eced6e15a170a0225ceb65ac6733e (diff)
downloadFreeBSD-src-7530e331f2073e0ef9872e64aef08abe3cfa0df8.zip
FreeBSD-src-7530e331f2073e0ef9872e64aef08abe3cfa0df8.tar.gz
Make _vm_map_init() the one place where the vm map's pmap field is
initialized. Reviewed by: kib
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index f1508c8..4499679 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -510,9 +510,8 @@ proc0_init(void *dummy __unused)
* proc0 is not expected to enter usermode, so there is no special
* handling for sv_minuser here, like is done for exec_new_vmspace().
*/
- vm_map_init(&vmspace0.vm_map, p->p_sysent->sv_minuser,
- p->p_sysent->sv_maxuser);
- vmspace0.vm_map.pmap = vmspace_pmap(&vmspace0);
+ vm_map_init(&vmspace0.vm_map, vmspace_pmap(&vmspace0),
+ p->p_sysent->sv_minuser, p->p_sysent->sv_maxuser);
/*-
* call the init and ctor for the new thread and proc
OpenPOWER on IntegriCloud