git: f4d1a3ab0271 - main - arm64: Fix the ESR_ELx_EC_MASK definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Feb 2026 15:16:02 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=f4d1a3ab0271216df05bab14c641d8023cc43a04
commit f4d1a3ab0271216df05bab14c641d8023cc43a04
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2026-02-18 15:10:44 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2026-02-18 15:15:41 +0000
arm64: Fix the ESR_ELx_EC_MASK definition
Sponsored by: Arm Ltd
---
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 */