aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/pgtable-hwdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/include/asm/pgtable-hwdef.h')
-rw-r--r--arch/arm64/include/asm/pgtable-hwdef.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index 80f3d241cff8..59bfae75dc98 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -143,7 +143,12 @@
143/* 143/*
144 * TCR flags. 144 * TCR flags.
145 */ 145 */
146#define TCR_TxSZ(x) (((UL(64) - (x)) << 16) | ((UL(64) - (x)) << 0)) 146#define TCR_T0SZ_OFFSET 0
147#define TCR_T1SZ_OFFSET 16
148#define TCR_T0SZ(x) ((UL(64) - (x)) << TCR_T0SZ_OFFSET)
149#define TCR_T1SZ(x) ((UL(64) - (x)) << TCR_T1SZ_OFFSET)
150#define TCR_TxSZ(x) (TCR_T0SZ(x) | TCR_T1SZ(x))
151#define TCR_TxSZ_WIDTH 6
147#define TCR_IRGN_NC ((UL(0) << 8) | (UL(0) << 24)) 152#define TCR_IRGN_NC ((UL(0) << 8) | (UL(0) << 24))
148#define TCR_IRGN_WBWA ((UL(1) << 8) | (UL(1) << 24)) 153#define TCR_IRGN_WBWA ((UL(1) << 8) | (UL(1) << 24))
149#define TCR_IRGN_WT ((UL(2) << 8) | (UL(2) << 24)) 154#define TCR_IRGN_WT ((UL(2) << 8) | (UL(2) << 24))