summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/cpuregs.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-03-12 03:49:17 +0000
committerneel <neel@FreeBSD.org>2010-03-12 03:49:17 +0000
commit7ca6d1bcd1c9d23ec8247d13014708dc09cdb3d5 (patch)
tree79327eb2ab67fc4c59dc1e2c8bfbd5187f2dfebd /sys/mips/include/cpuregs.h
parent1fc7a4e7bded730ca621682e4fbe7c80fc8d050d (diff)
downloadFreeBSD-src-7ca6d1bcd1c9d23ec8247d13014708dc09cdb3d5.zip
FreeBSD-src-7ca6d1bcd1c9d23ec8247d13014708dc09cdb3d5.tar.gz
Make the ddb command "show tlb" SMP friendly.
It now accepts an argument to dump out the tlb of a particular cpu.
Diffstat (limited to 'sys/mips/include/cpuregs.h')
-rw-r--r--sys/mips/include/cpuregs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/mips/include/cpuregs.h b/sys/mips/include/cpuregs.h
index 39c138d..74e789c 100644
--- a/sys/mips/include/cpuregs.h
+++ b/sys/mips/include/cpuregs.h
@@ -577,6 +577,8 @@
#define MIPS_CONFIG1_TLBSZ_MASK 0x7E000000 /* bits 30..25 # tlb entries minus one */
#define MIPS_CONFIG1_TLBSZ_SHIFT 25
+#define MIPS_MAX_TLB_ENTRIES 64
+
#define MIPS_CONFIG1_IS_MASK 0x01C00000 /* bits 24..22 icache sets per way */
#define MIPS_CONFIG1_IS_SHIFT 22
#define MIPS_CONFIG1_IL_MASK 0x00380000 /* bits 21..19 icache line size */
OpenPOWER on IntegriCloud