From e793e4d0b375c1e739afecc25d1c75a3e99b19f8 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Wed, 29 May 2002 05:56:05 +0000 Subject: Add pv list linkage and a pmap pointer to struct tte. Remove separately allocated pv entries and use the linkage in the tte for pv operations. --- sys/sparc64/include/pv.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'sys/sparc64/include/pv.h') diff --git a/sys/sparc64/include/pv.h b/sys/sparc64/include/pv.h index 96b2b89939f3..5d977d794c0c 100644 --- a/sys/sparc64/include/pv.h +++ b/sys/sparc64/include/pv.h @@ -40,20 +40,10 @@ #ifndef _MACHINE_PV_H_ #define _MACHINE_PV_H_ -extern uma_zone_t pvzone; -extern struct vm_object pvzone_obj; -extern int pv_entry_count; -extern int pv_entry_max; -extern int pv_entry_high_water; -extern struct pv_entry *pvinit; +struct tte; -void *pv_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait); -pv_entry_t pv_alloc(void); -void pv_free(pv_entry_t pv); - -void pv_insert(pmap_t pm, vm_page_t m, vm_offset_t va); -pv_entry_t pv_lookup(pmap_t pm, vm_page_t m, vm_offset_t va); -void pv_remove(pmap_t pm, vm_page_t m, vm_offset_t va); +void pv_insert(pmap_t pm, vm_page_t m, struct tte *tp); +void pv_remove(pmap_t pm, vm_page_t m, struct tte *tp); int pv_page_exists(pmap_t pm, vm_page_t m); void pv_remove_all(vm_page_t m); -- cgit v1.2.3