diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:49:49 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-27 04:49:49 +0000 |
commit | b61e35faf27549918f1230cc2ce84736dd843937 (patch) | |
tree | 30c8c327ade6c3964b6174515a7d4ac49fb5d480 /sys/kern/kern_exit.c | |
parent | edcf27d64733b7c58c5e752241e2f00119bdc747 (diff) |
remove old vm
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index b74c64b0357..41fcf9ac857 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.32 2001/06/03 08:55:11 angelos Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.33 2001/06/27 04:49:41 art Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -80,9 +80,7 @@ #include <vm/vm.h> #include <vm/vm_kern.h> -#if defined(UVM) #include <uvm/uvm_extern.h> -#endif void proc_zap __P((struct proc *)); @@ -163,15 +161,9 @@ exit1(p, rv) * Can't free the entire vmspace as the kernel stack * may be mapped within that space also. */ -#if defined(UVM) if (vm->vm_refcnt == 1) (void) uvm_deallocate(&vm->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - VM_MIN_ADDRESS); -#else - if (vm->vm_refcnt == 1) - (void) vm_map_remove(&vm->vm_map, VM_MIN_ADDRESS, - VM_MAXUSER_ADDRESS); -#endif if (SESS_LEADER(p)) { register struct session *sp = p->p_session; @@ -383,17 +375,12 @@ reaper() */ cpu_wait(p); -#ifdef UVM /* * Free the VM resources we're still holding on to. * We must do this from a valid thread because doing * so may block. */ uvm_exit(p); -#else - vmspace_free(p->p_vmspace); - kmem_free(kernel_map, (vaddr_t)p->p_addr, USPACE); -#endif /* Process is now a true zombie. */ if ((p->p_flag & P_NOZOMBIE) == 0) { |