From 956856ae062153fc1e83b8c7a67fdbef0ead6ffa Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Sun, 30 Sep 2001 19:03:22 +0000 Subject: 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. --- sys/sparc64/include/tsb.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'sys/sparc64/include/tsb.h') 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; -- cgit v1.2.3