summaryrefslogtreecommitdiffstats
path: root/sys/vm/pmap.h
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2003-10-06 01:47:12 +0000
committerbms <bms@FreeBSD.org>2003-10-06 01:47:12 +0000
commitd8d01a1fa74aaeb8f9c01655002588c21197bddd (patch)
tree008a39b1576b985c04df774cca557ae9a75edfd1 /sys/vm/pmap.h
parent1ac708bd28fe01cd0f219e624441c78612dff7eb (diff)
downloadFreeBSD-src-d8d01a1fa74aaeb8f9c01655002588c21197bddd.zip
FreeBSD-src-d8d01a1fa74aaeb8f9c01655002588c21197bddd.tar.gz
Move pmap_resident_count() from the MD pmap.h to the MI pmap.h.
Add a definition of pmap_wired_count(). Add a definition of vmspace_wired_count(). Reviewed by: truckman Discussed with: peter
Diffstat (limited to 'sys/vm/pmap.h')
-rw-r--r--sys/vm/pmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h
index a6eff6ef..7adfa75 100644
--- a/sys/vm/pmap.h
+++ b/sys/vm/pmap.h
@@ -136,5 +136,9 @@ void pmap_activate(struct thread *td);
vm_offset_t pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size);
void *pmap_kenter_temporary(vm_offset_t pa, int i);
void pmap_init2(void);
+
+#define pmap_resident_count(pm) ((pm)->pm_stats.resident_count)
+#define pmap_wired_count(pm) ((pm)->pm_stats.wired_count)
+
#endif /* _KERNEL */
#endif /* _PMAP_VM_ */
OpenPOWER on IntegriCloud