summaryrefslogtreecommitdiff
path: root/sys/vm/vm.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-06-01 08:23:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-06-01 08:23:53 +0000
commit35f53f5fa95074a840506dd77482efa21bc8f6fd (patch)
tree132dedfbc1771eed3792820b19e51a7a852acc71 /sys/vm/vm.h
parentd5d88eb4552e6aed99cc2ee1850aca8195a7d16c (diff)
remove the "ifdef pmap_resident_count" hack and replace it with a macro.
change some &vm->vm_pmap to vm->vm_map.pmap
Diffstat (limited to 'sys/vm/vm.h')
-rw-r--r--sys/vm/vm.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index ced335cebf4..ef2e5568c90 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm.h,v 1.7 1998/09/11 21:17:52 mickey Exp $ */
+/* $OpenBSD: vm.h,v 1.8 1999/06/01 08:23:51 art Exp $ */
/* $NetBSD: vm.h,v 1.13 1994/06/29 06:47:52 cgd Exp $ */
/*
@@ -103,4 +103,11 @@ struct vmspace {
caddr_t vm_daddr; /* user virtual address of data XXX */
caddr_t vm_maxsaddr; /* user VA at max stack growth */
};
+
+#ifdef pmap_resident_count
+#define vm_resident_count(vm) (pmap_resident_count((vm)->vm_map.pmap))
+#else
+#define vm_resident_count(vm) ((vm)->vm_rssize)
+#endif
+
#endif /* VM_H */