summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-03-23 23:36:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-03-23 23:36:40 +0000
commitfa5275b22eb94a7d990e643d54768420845d618c (patch)
tree26c180caa2af5066e91ef4134ebb09971244fba2 /sys/kern
parent75cd31da1a0f264658261d0a7aba581b4bff459e (diff)
Take vm_pmap out of struct vmspace if we are using UVM since UVM doesn't
use that. Fixes size mismatch in i386 pmap.new kernel. This requires that users rebuild libkvm and friends using the new headers for ps et al to work with a new kernel.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 1af6d28fd50..697fad8ab03 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.39 2001/03/16 08:49:09 art Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.40 2001/03/23 23:36:39 millert Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -877,7 +877,9 @@ fill_eproc(p, ep)
ep->e_vm.vm_tsize = vm->vm_tsize;
ep->e_vm.vm_dsize = vm->vm_dsize;
ep->e_vm.vm_ssize = vm->vm_ssize;
+#ifndef UVM
ep->e_vm.vm_pmap = *vm->vm_map.pmap;
+#endif
}
if (p->p_pptr)
ep->e_ppid = p->p_pptr->p_pid;