diff options
author | alc <alc@FreeBSD.org> | 2003-10-03 22:46:53 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-10-03 22:46:53 +0000 |
commit | b1691aebe4218b5dedfc2dac5620bc1e02226f72 (patch) | |
tree | 10ac1c9d9b930d5a0606d41e87f29b5d53946de0 /sys/sparc64 | |
parent | 678d7d93783f9161ce47727c8e23987c819d7ab6 (diff) | |
download | FreeBSD-src-b1691aebe4218b5dedfc2dac5620bc1e02226f72.zip FreeBSD-src-b1691aebe4218b5dedfc2dac5620bc1e02226f72.tar.gz |
Migrate pmap_prefault() into the machine-independent virtual memory layer.
A small helper function pmap_is_prefaultable() is added. This function
encapsulate the few lines of pmap_prefault() that actually vary from
machine to machine. Note: pmap_is_prefaultable() and pmap_mincore() have
much in common. Going forward, it's worth considering their merger.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index a1cbf99..2d7ad37 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -1374,12 +1374,6 @@ pmap_object_init_pt(pmap_t pm, vm_offset_t addr, vm_object_t object, ("pmap_object_init_pt: non-device object")); } -void -pmap_prefault(pmap_t pm, vm_offset_t va, vm_map_entry_t entry) -{ - /* XXX */ -} - /* * Change the wiring attribute for a map/virtual-address pair. * The mapping must already exist in the pmap. @@ -1724,6 +1718,19 @@ pmap_is_modified(vm_page_t m) return (FALSE); } +/* + * pmap_is_prefaultable: + * + * Return whether or not the specified virtual address is elgible + * for prefault. + */ +boolean_t +pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr) +{ + + return (FALSE); +} + void pmap_clear_modify(vm_page_t m) { |