From 7530e331f2073e0ef9872e64aef08abe3cfa0df8 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 3 Apr 2010 19:07:05 +0000 Subject: Make _vm_map_init() the one place where the vm map's pmap field is initialized. Reviewed by: kib --- sys/kern/init_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/kern') 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 -- cgit v1.1