diff options
author | jake <jake@FreeBSD.org> | 2001-08-06 02:20:36 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-08-06 02:20:36 +0000 |
commit | 9059da7a9fae11abe8839e73926f1ed6426d3615 (patch) | |
tree | 16d5ef55fff0c8ffaf25786bf81b0baca3217b30 /sys/sparc64/include/tsb.h | |
parent | 89093137c846d3aab930a336fe3b509565535b5f (diff) | |
download | FreeBSD-src-9059da7a9fae11abe8839e73926f1ed6426d3615.zip FreeBSD-src-9059da7a9fae11abe8839e73926f1ed6426d3615.tar.gz |
Fix macros for setting and extracting the context field in ttes and
add macros for the fields in sfsr.
Diffstat (limited to 'sys/sparc64/include/tsb.h')
-rw-r--r-- | sys/sparc64/include/tsb.h | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/sys/sparc64/include/tsb.h b/sys/sparc64/include/tsb.h index 917121b..b8093a6 100644 --- a/sys/sparc64/include/tsb.h +++ b/sys/sparc64/include/tsb.h @@ -32,8 +32,8 @@ #ifndef _MACHINE_TSB_H_ #define _MACHINE_TSB_H_ -#define TSB_KERNEL_MIN_ADDRESS (0x6e000000000) -#define TSB_USER_MIN_ADDRESS (0x6f000000000) +#define TSB_KERNEL_MIN_ADDRESS (0xd0000000) +#define TSB_USER_MIN_ADDRESS (0xe0000000) #define TSB_MASK_WIDTH (6) @@ -44,9 +44,9 @@ #define TSB_SECONDARY_BUCKET_SIZE (1 << TSB_SECONDARY_BUCKET_SHIFT) #define TSB_SECONDARY_BUCKET_MASK (TSB_SECONDARY_BUCKET_SIZE - 1) -#define TSB_SECONDARY_STTE_SHIFT \ - (STTE_SHIFT + TSB_SECONDARY_BUCKET_SHIFT) -#define TSB_SECONDARY_STTE_MASK (1 << TSB_SECONDARY_STTE_SHIFT) +#define TSB_PRIMARY_STTE_SHIFT \ + (STTE_SHIFT + TSB_PRIMARY_BUCKET_SHIFT) +#define TSB_PRIMARY_STTE_MASK ((1 << TSB_PRIMARY_STTE_SHIFT) - 1) #define TSB_LEVEL1_BUCKET_MASK \ ((TSB_SECONDARY_BUCKET_MASK & ~TSB_PRIMARY_BUCKET_MASK) << \ @@ -177,30 +177,6 @@ tsb_kvtostte(vm_offset_t va) return (tsb_kvpntostte(va >> PAGE_SHIFT)); } -static __inline void -tsb_tte_enter_kernel(vm_offset_t va, struct tte tte) -{ - struct stte *stp; - - stp = tsb_kvtostte(va); - stp->st_tte = tte; -#if 0 - pv_insert(kernel_pmap, TD_PA(tte.tte_data), va, stp); -#endif -} - -static __inline void -tsb_remove_kernel(vm_offset_t va) -{ - struct stte *stp; - - stp = tsb_kvtostte(va); - tte_invalidate(&stp->st_tte); -#if 0 - pv_remove_virt(stp); -#endif -} - struct stte *tsb_get_bucket(pmap_t pm, u_int level, vm_offset_t va, int allocate); int tsb_miss(pmap_t pm, u_int type, struct mmuframe *mf); |