git: 9171bb44cca5 - main - powerpc/pmap: Fix SLB VSID mask

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Tue, 25 Aug 2026 03:04:36 UTC
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=9171bb44cca5587b547cb1a18788c103e0320050

commit 9171bb44cca5587b547cb1a18788c103e0320050
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2026-08-24 21:12:30 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2026-08-25 03:03:09 +0000

    powerpc/pmap: Fix SLB VSID mask
    
    Bits [0:1] map to "B", the "Segment size selector", and are not part of
    the VSID.  Correct this mask.
---
 sys/powerpc/include/slb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/powerpc/include/slb.h b/sys/powerpc/include/slb.h
index 707887d197bd..9f0cb594b9d1 100644
--- a/sys/powerpc/include/slb.h
+++ b/sys/powerpc/include/slb.h
@@ -44,7 +44,7 @@
 #define	SLBV_N		0x0000000000000200UL /* No-execute protection */
 #define	SLBV_L		0x0000000000000100UL /* Large page selector */
 #define	SLBV_CLASS	0x0000000000000080UL /* Class selector */
-#define	SLBV_VSID_MASK	0xfffffffffffff000UL /* Virtual segment ID mask */
+#define	SLBV_VSID_MASK	0x3ffffffffffff000UL /* Virtual segment ID mask */
 #define	SLBV_VSID_SHIFT	12
 
 /*