Skip to content

Commit de84727

Browse files
brooniectmarinas
authored andcommitted
arm64/esr: Use GENMASK() for the ISS mask
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 44c026a commit de84727

File tree

1 file changed

+1
-1
lines changed
  • arch/arm64/include/asm

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/esr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
#define ESR_ELx_IL_SHIFT (25)
7777
#define ESR_ELx_IL (UL(1) << ESR_ELx_IL_SHIFT)
78-
#define ESR_ELx_ISS_MASK (ESR_ELx_IL - 1)
78+
#define ESR_ELx_ISS_MASK (GENMASK(24, 0))
7979
#define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK)
8080

8181
/* ISS field definitions shared by different classes */

0 commit comments

Comments
 (0)