aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/tsb.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-02-23 20:25:20 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-02-23 20:25:20 +0000
commit919f71f0fcd505164f0451054baab67dbe7d1b7f (patch)
tree05cbbb78e369834523b0543645fc78c4595425cb /sys/sparc64/include/tsb.h
parent7cc66bde357c6e05e7161c9241544d7d729d0cfc (diff)
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.
Notes
Notes: svn path=/head/; revision=91168
Diffstat (limited to 'sys/sparc64/include/tsb.h')
-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 b99621717a1f..14593c908041 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_ */