Skip to content

Commit a8f15b3

Browse files
Linus WalleijRussell King (Oracle)
authored andcommitted
ARM: 9355/2: Add TTBCR_* definitions to pgtable-3level-hwdef.h
These macros will be used in a subsequent patch. At one point these were part of the ARM32 KVM but that is no longer the case. Since these macros are only relevant to LPAE kernel builds, they are added to pgtable-3level-hwdef.h Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 4cece76 commit a8f15b3

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

arch/arm/include/asm/pgtable-3level-hwdef.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,21 @@
9494

9595
#define TTBR1_SIZE (((PAGE_OFFSET >> 30) - 1) << 16)
9696

97+
/*
98+
* TTBCR register bits.
99+
*/
100+
#define TTBCR_EAE (1 << 31)
101+
#define TTBCR_IMP (1 << 30)
102+
#define TTBCR_SH1_MASK (3 << 28)
103+
#define TTBCR_ORGN1_MASK (3 << 26)
104+
#define TTBCR_IRGN1_MASK (3 << 24)
105+
#define TTBCR_EPD1 (1 << 23)
106+
#define TTBCR_A1 (1 << 22)
107+
#define TTBCR_T1SZ_MASK (7 << 16)
108+
#define TTBCR_SH0_MASK (3 << 12)
109+
#define TTBCR_ORGN0_MASK (3 << 10)
110+
#define TTBCR_IRGN0_MASK (3 << 8)
111+
#define TTBCR_EPD0 (1 << 7)
112+
#define TTBCR_T0SZ_MASK (7 << 0)
113+
97114
#endif

0 commit comments

Comments
 (0)