summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-02-23 20:25:20 +0000
committerjake <jake@FreeBSD.org>2002-02-23 20:25:20 +0000
commited147b733c78d3ec6fd252331008ac46cb9e27a9 (patch)
tree05cbbb78e369834523b0543645fc78c4595425cb /sys/sparc64/include
parentf7ad72d5e24425d3483d2c9ed9d0bef974c8d435 (diff)
downloadFreeBSD-src-ed147b733c78d3ec6fd252331008ac46cb9e27a9.zip
FreeBSD-src-ed147b733c78d3ec6fd252331008ac46cb9e27a9.tar.gz
Adapt the tsb_foreach interface to take a source and a destination pmap so
that it can be used for pmap_copy. Other consumers ignore the second pmap. Add statistics gathering for tsb_foreach. Implement pmap_copy.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/tsb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/tsb.h b/sys/sparc64/include/tsb.h
index b996217..14593c9 100644
--- a/sys/sparc64/include/tsb.h
+++ b/sys/sparc64/include/tsb.h
@@ -73,14 +73,14 @@ tsb_kvtotte(vm_offset_t va)
return (tsb_kvpntotte(va >> PAGE_SHIFT));
}
-typedef int (tsb_callback_t)(struct pmap *, struct tte *, vm_offset_t);
+typedef int (tsb_callback_t)(struct pmap *, struct pmap *, struct tte *, vm_offset_t);
struct tte *tsb_tte_lookup(pmap_t pm, vm_offset_t va);
void tsb_tte_remove(struct tte *stp);
struct tte *tsb_tte_enter(pmap_t pm, vm_page_t m, vm_offset_t va,
struct tte tte);
void tsb_tte_local_remove(struct tte *tp);
-void tsb_foreach(pmap_t pm, vm_offset_t start, vm_offset_t end,
+void tsb_foreach(pmap_t pm1, pmap_t pm2, vm_offset_t start, vm_offset_t end,
tsb_callback_t *callback);
#endif /* !_MACHINE_TSB_H_ */
OpenPOWER on IntegriCloud