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:
Harry Moulton
2026-01-07 14:20:19 +00:00
committed by Andrew Turner
parent 2708369395
commit bdaa120b30
+1 -1
View File
@@ -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)