Skip to content

Commit 5548e8a

Browse files
author
Russell King (Oracle)
committed
ARM: use BIT() and GENMASK() for fault status register fields
Modernise the fault status field definitions by using BIT() and GENMASK(). Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 9c46fca commit 5548e8a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

arch/arm/mm/fault.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
/*
66
* Fault status register encodings. We steal bit 31 for our own purposes.
77
*/
8-
#define FSR_LNX_PF (1 << 31)
9-
#define FSR_CM (1 << 13)
10-
#define FSR_WRITE (1 << 11)
11-
#define FSR_FS4 (1 << 10)
12-
#define FSR_FS3_0 (15)
13-
#define FSR_FS5_0 (0x3f)
8+
#define FSR_LNX_PF BIT(31)
9+
#define FSR_CM BIT(13)
10+
#define FSR_WRITE BIT(11)
11+
#define FSR_FS4 BIT(10)
12+
#define FSR_FS3_0 GENMASK(3, 0)
13+
#define FSR_FS5_0 GENMASK(5, 0)
1414

1515
#ifdef CONFIG_ARM_LPAE
1616
#define FSR_FS_AEA 17

0 commit comments

Comments
 (0)