diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-09-30 19:03:22 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-09-30 19:03:22 +0000 |
commit | 956856ae062153fc1e83b8c7a67fdbef0ead6ffa (patch) | |
tree | 290b7fe08f42e0a00903684ace985dce7b580388 /sys/sparc64/include/tsb.h | |
parent | 954f0d930ea9143865ad0278cce643c570f0c7a9 (diff) |
Move the kernel to end of the first 4 gigabytes of address space, so that
one 4 meg page can map both the kernel and the openfirmware mappings.
Add the openfirmware mappings to the kernel tsb so we can call the firmware
on the kernel trap table and access kernel memory normally.
Implement pmap_swapout_proc, pmap_swapin_proc, pmap_swapout_thread,
pmap_swapin_thread, pmap_activate, pmap_page_exists, and pmap_phys_address.
Notes
Notes:
svn path=/head/; revision=84183
Diffstat (limited to 'sys/sparc64/include/tsb.h')
-rw-r--r-- | sys/sparc64/include/tsb.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/sparc64/include/tsb.h b/sys/sparc64/include/tsb.h index b8093a6bcdbc..ec1b1d1c202c 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 (0xd0000000) -#define TSB_USER_MIN_ADDRESS (0xe0000000) +#define TSB_KERNEL_MIN_ADDRESS (0xa0000000) +#define TSB_USER_MIN_ADDRESS (0xb0000000) #define TSB_MASK_WIDTH (6) @@ -61,17 +61,7 @@ #define TSB_KERNEL_PAGES (1) #define TSB_KERNEL_SIZE (TSB_KERNEL_PAGES * PAGE_SIZE_4M) -#define TSB_KERNEL_MB (512) -#define TSB_KERNEL_VM_RANGE (TSB_KERNEL_MB * (1 << 20)) -#define TSB_KERNEL_RANGE \ - ((TSB_KERNEL_VM_RANGE / PAGE_SIZE) * sizeof (struct stte)) -#define TSB_KERNEL_MASK \ - ((TSB_KERNEL_RANGE / sizeof (struct stte)) - 1) - -#define TSB_1M_STTE_SHIFT (21) -#define TSB_1M_STTE_SIZE (1 << TSB_1M_SHIFT) - -#define TSB_SIZE_REG (7) +#define TSB_KERNEL_MASK ((TSB_KERNEL_SIZE >> STTE_SHIFT) - 1) extern vm_offset_t tsb_kernel_phys; |