git: 767f1aa9fb64 - stable/15 - arm64: Fix the ESR_ELx_EC_MASK definition

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Wed, 08 Apr 2026 14:01:37 UTC
The branch stable/15 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=767f1aa9fb64b80015f43dac2a896d7029a60d20

commit 767f1aa9fb64b80015f43dac2a896d7029a60d20
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2026-02-18 15:10:44 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-04-08 13:59:54 +0000

    arm64: Fix the ESR_ELx_EC_MASK definition
    
    Sponsored by:   Arm Ltd
    
    (cherry picked from commit f4d1a3ab0271216df05bab14c641d8023cc43a04)
---
 sys/arm64/include/armreg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/include/armreg.h b/sys/arm64/include/armreg.h
index 138a1eff51ac..271fe693cdea 100644
--- a/sys/arm64/include/armreg.h
+++ b/sys/arm64/include/armreg.h
@@ -658,7 +658,7 @@
 #define	 ISS_DATA_DFSC_TLB_CONFLICT (0x30 << 0)
 #define	ESR_ELx_IL		(0x01 << 25)
 #define	ESR_ELx_EC_SHIFT	26
-#define	ESR_ELx_EC_MASK		(0x3f << 26)
+#define	ESR_ELx_EC_MASK		(UL(0x3f) << 26)
 #define	ESR_ELx_EXCEPTION(esr)	(((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT)
 #define	 EXCP_UNKNOWN		0x00	/* Unkwn exception */
 #define	 EXCP_TRAP_WFI_WFE	0x01	/* Trapped WFI or WFE */