Date: Wed, 1 Mar 2006 08:29:51 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92590 for review Message-ID: <200603010829.k218TpBR009461@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92590 Change 92590 by kmacy@kmacy_storage:sun4v_work on 2006/03/01 08:29:07 add general lookup function move kernel TSB indexes in return tte_t's Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/include/tsb.h#6 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/include/tsb.h#6 (text+ko) ==== @@ -64,11 +64,25 @@ #define TSB32M (1 << TTE32M) #define TSB256M (1 << TTE256M) +/* + * Kernel TSBs + */ +#define TSB8K_INDEX 0 +#define TSB4M_INDEX 1 + +extern hv_tsb_info_t kernel_td[MAX_TSB_INFO]; + struct hv_tsb_info; +typedef uint64_t tte_t; + +void tsb_assert_invalid(hv_tsb_info_t *tsb, vm_offset_t va); + void tsb_set_tte(struct hv_tsb_info *tsb, vm_offset_t va, vm_paddr_t pa, uint64_t flags, uint64_t ctx); -uint64_t tsb_get_tte(struct hv_tsb_info *tsb, vm_offset_t va, uint64_t ctx); +tte_t tsb_get_tte(struct hv_tsb_info *tsb, vm_offset_t va, uint64_t ctx); + +tte_t tsb_lookup_tte(vm_offset_t va, uint64_t ctx); void tsb_clear_tte(struct hv_tsb_info *tsb, vm_offset_t, uint64_t ctx);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603010829.k218TpBR009461>