git: 3414984c3aff - stable/13 - arm64: add PMBSR_MSS_{BSC,FSC} status code field

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Mon, 15 Jul 2024 12:38:20 UTC
The branch stable/13 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=3414984c3aff2a87d884c4110b69d2a81d6c090f

commit 3414984c3aff2a87d884c4110b69d2a81d6c090f
Author:     Zachary Leaf <zachary.leaf@arm.com>
AuthorDate: 2023-09-20 09:51:22 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-07-15 12:34:29 +0000

    arm64: add PMBSR_MSS_{BSC,FSC} status code field
    
    Bits [5:0] of PMBSR_MSS encodes either Buffer Status Code (BSC) or Fault
    Status Code (FSC) depending on PMBSR_EC value.
    
    Add PMBSR_MSS_{BSC,FSC} to cover this field.
    
    Reviewed by:    andrew
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D45172
    
    (cherry picked from commit 10b3eac88db689d657c4d0d0716bcbdf240ff614)
---
 sys/arm64/include/armreg.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h
index 1c9dfc1c19a7..eb62945acaff 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -1692,6 +1692,8 @@
 #define	PMBSR_EL1_op2			3
 #define	PMBSR_MSS_SHIFT			0
 #define	PMBSR_MSS_MASK			(UL(0xffff) << PMBSR_MSS_SHIFT)
+#define	PMBSR_MSS_BSC_MASK		(UL(0x3f) << PMBSR_MSS_SHIFT)
+#define	PMBSR_MSS_FSC_MASK		(UL(0x3f) << PMBSR_MSS_SHIFT)
 #define	PMBSR_COLL_SHIFT		16
 #define	PMBSR_COLL			(UL(0x1) << PMBSR_COLL_SHIFT)
 #define	PMBSR_S_SHIFT			17