summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-01-01 14:01:21 +0000
committermarius <marius@FreeBSD.org>2009-01-01 14:01:21 +0000
commit78ee2961aaa4bb0c734b924a9edf64aa2aef50fe (patch)
treeb4949f390128d9f1306b707fa701792681702660 /sys/sparc64/include
parent0596e3449bae55cdc93922846db4c24ac0201bdd (diff)
downloadFreeBSD-src-78ee2961aaa4bb0c734b924a9edf64aa2aef50fe.zip
FreeBSD-src-78ee2961aaa4bb0c734b924a9edf64aa2aef50fe.tar.gz
- Currently the PMAP code is laid out to let the kernel TSB cover the
whole KVA space using one locked 4MB dTLB entry per GB of physical memory. On Cheetah-class machines only the dt16 can hold locked entries though, which would be completely consumed for the kernel TSB on machines with >= 16GB. Therefore limit the KVA space to use no more than half of the lockable dTLB slots, given that we need them also for other things. - Add sanity checks which ensure that we don't exhaust the (lockable) TLB slots.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/tlb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/include/tlb.h b/sys/sparc64/include/tlb.h
index 06a8296..f0a4a7b 100644
--- a/sys/sparc64/include/tlb.h
+++ b/sys/sparc64/include/tlb.h
@@ -129,6 +129,8 @@ typedef void tlb_flush_user_t(void);
struct pmap;
struct tlb_entry;
+extern int dtlb_slots;
+extern int itlb_slots;
extern int kernel_tlb_slots;
extern struct tlb_entry *kernel_tlbs;
OpenPOWER on IntegriCloud