git: 9006774e46df - main - powerpc/booke: Extend TID register bits to the max
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jun 2026 22:07:03 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=9006774e46dfe0859500ce18e1691c75846a884d
commit 9006774e46dfe0859500ce18e1691c75846a884d
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2026-06-21 20:28:55 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2026-06-21 21:23:57 +0000
powerpc/booke: Extend TID register bits to the max
Some Book-E cores (at least e6500) can have much larger PID fields, up
to 14 bits. Extend the PID mask space to the full space, and future
changes may take advantage of this extended space.
---
sys/powerpc/booke/trap_subr.S | 2 +-
sys/powerpc/include/tlb.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/powerpc/booke/trap_subr.S b/sys/powerpc/booke/trap_subr.S
index 789e746dba3e..cb4d99e6fffb 100644
--- a/sys/powerpc/booke/trap_subr.S
+++ b/sys/powerpc/booke/trap_subr.S
@@ -712,7 +712,7 @@ search_kernel_pmap:
/* Force kernel tid, set TID to 0 in MAS1. */
li %r21, 0
- rlwimi %r28, %r21, 0, 8, 15 /* clear TID bits */
+ rlwimi %r28, %r21, 0, 2, 15 /* clear TID bits */
tlb_miss_handle:
/* This may result in nested tlb miss. */
diff --git a/sys/powerpc/include/tlb.h b/sys/powerpc/include/tlb.h
index 33d31efab604..2a460251e292 100644
--- a/sys/powerpc/include/tlb.h
+++ b/sys/powerpc/include/tlb.h
@@ -46,7 +46,7 @@
#define MAS1_VALID 0x80000000
#define MAS1_IPROT 0x40000000
-#define MAS1_TID_MASK 0x00FF0000
+#define MAS1_TID_MASK 0x3FFF0000
#define MAS1_TID_SHIFT 16
#define MAS1_TS_MASK 0x00001000
#define MAS1_TS_SHIFT 12