summaryrefslogtreecommitdiffstats
path: root/sys/vm/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-07-03 20:18:02 +0000
committeralc <alc@FreeBSD.org>2003-07-03 20:18:02 +0000
commit0699f7e17ff39a213cf2dd24b601d9d8e73271b9 (patch)
treed866e6a21d7e58ecc726f0d4972a8006256cf55d /sys/vm/pmap.h
parent6f4ee681fdadfbb7008a43761f43ef8fe7d4f5c1 (diff)
downloadFreeBSD-src-0699f7e17ff39a213cf2dd24b601d9d8e73271b9.zip
FreeBSD-src-0699f7e17ff39a213cf2dd24b601d9d8e73271b9.tar.gz
Background: pmap_object_init_pt() premaps the pages of a object in
order to avoid the overhead of later page faults. In general, it implements two cases: one for vnode-backed objects and one for device-backed objects. Only the device-backed case is really machine-dependent, belonging in the pmap. This commit moves the vnode-backed case into the (relatively) new function vm_map_pmap_enter(). On amd64 and i386, this commit only amounts to code rearrangement. On alpha and ia64, the new machine independent (MI) implementation of the vnode case is smaller and more efficient than their pmap-based implementations. (The MI implementation takes advantage of the fact that objects in -CURRENT are ordered collections of pages.) On sparc64, pmap_object_init_pt() hadn't (yet) been implemented.
Diffstat (limited to 'sys/vm/pmap.h')
-rw-r--r--sys/vm/pmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h
index c623fda..af809bb 100644
--- a/sys/vm/pmap.h
+++ b/sys/vm/pmap.h
@@ -112,8 +112,7 @@ boolean_t pmap_is_modified(vm_page_t m);
boolean_t pmap_ts_referenced(vm_page_t m);
vm_offset_t pmap_map(vm_offset_t *, vm_paddr_t, vm_paddr_t, int);
void pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
- vm_object_t object, vm_pindex_t pindex, vm_size_t size,
- int pagelimit);
+ vm_object_t object, vm_pindex_t pindex, vm_size_t size);
boolean_t pmap_page_exists_quick(pmap_t pmap, vm_page_t m);
void pmap_page_protect(vm_page_t m, vm_prot_t prot);
void pmap_pinit(pmap_t);
OpenPOWER on IntegriCloud