projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c026a
)
arm64/esr: Use GENMASK() for the ISS mask
author
Mark Brown
<broonie@kernel.org>
Thu, 11 May 2023 06:05:14 +0000
(15:05 +0900)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Fri, 26 May 2023 09:11:42 +0000
(10:11 +0100)
We express the mask for ESR_ELx.ISS in a non-standard manner, not using
the standard helpers. In preparation for adding decode for ISS2 convert to
use GENMASK(). No functional change.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20230417-arm64-iss2-dabt-decode-v3-1-c1fa503e503a@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/esr.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/include/asm/esr.h
b/arch/arm64/include/asm/esr.h
index 8487aec9b6587759eb6a57a9bd8df054785bd9a8..0bd879007168a759a1dc821c4464dd6f6184c3d5 100644
(file)
--- a/
arch/arm64/include/asm/esr.h
+++ b/
arch/arm64/include/asm/esr.h
@@
-75,7
+75,7
@@
#define ESR_ELx_IL_SHIFT (25)
#define ESR_ELx_IL (UL(1) << ESR_ELx_IL_SHIFT)
-#define ESR_ELx_ISS_MASK (
ESR_ELx_IL - 1
)
+#define ESR_ELx_ISS_MASK (
GENMASK(24, 0)
)
#define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK)
/* ISS field definitions shared by different classes */