arm64: Fix MAIR_ATTR_MASK
Use the correct value when calculating the mask. (commit message by andrew@) Sponsored by: Arm Ltd
This commit is contained in:
committed by
Andrew Turner
parent
2708369395
commit
bdaa120b30
@@ -1982,7 +1982,7 @@
|
||||
#define MAIR_EL1_CRn 10
|
||||
#define MAIR_EL1_CRm 2
|
||||
#define MAIR_EL1_op2 0
|
||||
#define MAIR_ATTR_MASK(idx) (UL(0xff) << ((n)* 8))
|
||||
#define MAIR_ATTR_MASK(idx) (UL(0xff) << ((idx) * 8))
|
||||
#define MAIR_ATTR(attr, idx) ((attr) << ((idx) * 8))
|
||||
#define MAIR_DEVICE_nGnRnE UL(0x00)
|
||||
#define MAIR_DEVICE_nGnRE UL(0x04)
|
||||
|
||||
Reference in New Issue
Block a user