aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/xen
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2014-08-03 20:40:51 +0000
committerAlan Cox <alc@FreeBSD.org>2014-08-03 20:40:51 +0000
commita695d9b25b9356d606ca739446616b250f8e267b (patch)
tree2ab40fc0f8244e8e1d8a04f61b19ada4139006e1 /sys/i386/xen
parentcb9b8e6f7d018872a9db9653ed69d3ed47e27d34 (diff)
downloadsrc-a695d9b25b9356d606ca739446616b250f8e267b.tar.gz
src-a695d9b25b9356d606ca739446616b250f8e267b.zip
Retire pmap_change_wiring(). We have never used it to wire virtual pages.
We continue to use pmap_enter() for that. For unwiring virtual pages, we now use pmap_unwire(), which unwires a range of virtual addresses instead of a single virtual page. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=269485
Diffstat (limited to 'sys/i386/xen')
-rw-r--r--sys/i386/xen/pmap.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c
index 54ee3a6793bb..fbfdcf7a5cce 100644
--- a/sys/i386/xen/pmap.c
+++ b/sys/i386/xen/pmap.c
@@ -3167,39 +3167,6 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr, vm_object_t object,
}
/*
- * Routine: pmap_change_wiring
- * Function: Change the wiring attribute for a map/virtual-address
- * pair.
- * In/out conditions:
- * The mapping must already exist in the pmap.
- */
-void
-pmap_change_wiring(pmap_t pmap, vm_offset_t va, boolean_t wired)
-{
- pt_entry_t *pte;
-
- rw_wlock(&pvh_global_lock);
- PMAP_LOCK(pmap);
- pte = pmap_pte(pmap, va);
-
- if (wired && !pmap_pte_w(pte)) {
- PT_SET_VA_MA((pte), *(pte) | PG_W, TRUE);
- pmap->pm_stats.wired_count++;
- } else if (!wired && pmap_pte_w(pte)) {
- PT_SET_VA_MA((pte), *(pte) & ~PG_W, TRUE);
- pmap->pm_stats.wired_count--;
- }
-
- /*
- * Wiring is not a hardware characteristic so there is no need to
- * invalidate TLB.
- */
- pmap_pte_release(pte);
- PMAP_UNLOCK(pmap);
- rw_wunlock(&pvh_global_lock);
-}
-
-/*
* Clear the wired attribute from the mappings for the specified range of
* addresses in the given pmap. Every valid mapping within that range
* must have the wired attribute set. In contrast, invalid mappings