tsb.h (166105) | tsb.h (216803) |
---|---|
1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from: BSDI: pmap.v9.h,v 1.10.2.6 1999/08/23 22:18:44 cp Exp | 1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from: BSDI: pmap.v9.h,v 1.10.2.6 1999/08/23 22:18:44 cp Exp |
29 * $FreeBSD: head/sys/sparc64/include/tsb.h 166105 2007-01-19 11:15:34Z marius $ | 29 * $FreeBSD: head/sys/sparc64/include/tsb.h 216803 2010-12-29 16:59:33Z marius $ |
30 */ 31 32#ifndef _MACHINE_TSB_H_ 33#define _MACHINE_TSB_H_ 34 35#define TSB_PAGES_SHIFT (4) 36#define TSB_PAGES (1 << TSB_PAGES_SHIFT) 37#define TSB_BSHIFT (TSB_PAGES_SHIFT + PAGE_SHIFT) --- 7 unchanged lines hidden (view full) --- 45#ifndef LOCORE 46 47#define TSB_SIZE (TSB_BSIZE / sizeof(struct tte)) 48 49extern struct tte *tsb_kernel; 50extern vm_size_t tsb_kernel_mask; 51extern vm_size_t tsb_kernel_size; 52extern vm_paddr_t tsb_kernel_phys; | 30 */ 31 32#ifndef _MACHINE_TSB_H_ 33#define _MACHINE_TSB_H_ 34 35#define TSB_PAGES_SHIFT (4) 36#define TSB_PAGES (1 << TSB_PAGES_SHIFT) 37#define TSB_BSHIFT (TSB_PAGES_SHIFT + PAGE_SHIFT) --- 7 unchanged lines hidden (view full) --- 45#ifndef LOCORE 46 47#define TSB_SIZE (TSB_BSIZE / sizeof(struct tte)) 48 49extern struct tte *tsb_kernel; 50extern vm_size_t tsb_kernel_mask; 51extern vm_size_t tsb_kernel_size; 52extern vm_paddr_t tsb_kernel_phys; |
53extern u_int tsb_kernel_ldd_phys; |
|
53 54static __inline struct tte * 55tsb_vpntobucket(pmap_t pm, vm_offset_t vpn) 56{ 57 58 return (&pm->pm_tsb[(vpn & TSB_BUCKET_MASK) << TSB_BUCKET_SHIFT]); 59} 60 --- 35 unchanged lines hidden --- | 54 55static __inline struct tte * 56tsb_vpntobucket(pmap_t pm, vm_offset_t vpn) 57{ 58 59 return (&pm->pm_tsb[(vpn & TSB_BUCKET_MASK) << TSB_BUCKET_SHIFT]); 60} 61 --- 35 unchanged lines hidden --- |