diff options
author | Vineet Gupta <vgupta@kernel.org> | 2020-10-01 15:46:42 -0700 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2021-08-26 13:43:19 -0700 |
commit | 8747ff704ac886f6ef992b1b7eadcf77d151fd3a (patch) | |
tree | 566687879eccba9a936adf38363b01d02bba5ca4 /arch/arc/include/asm/page.h | |
parent | 2dde02ab6d1a725ddccc7144ff6bf5f55d37f916 (diff) | |
download | linux-8747ff704ac886f6ef992b1b7eadcf77d151fd3a.tar.gz linux-8747ff704ac886f6ef992b1b7eadcf77d151fd3a.tar.bz2 linux-8747ff704ac886f6ef992b1b7eadcf77d151fd3a.zip |
ARC: mm: support 4 levels of page tables
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/include/asm/page.h')
-rw-r--r-- | arch/arc/include/asm/page.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arc/include/asm/page.h b/arch/arc/include/asm/page.h index 5d7899d87c08..9a62e1d87967 100644 --- a/arch/arc/include/asm/page.h +++ b/arch/arc/include/asm/page.h @@ -41,6 +41,17 @@ typedef struct { #define pgd_val(x) ((x).pgd) #define __pgd(x) ((pgd_t) { (x) }) +#if CONFIG_PGTABLE_LEVELS > 3 + +typedef struct { + unsigned long pud; +} pud_t; + +#define pud_val(x) ((x).pud) +#define __pud(x) ((pud_t) { (x) }) + +#endif + #if CONFIG_PGTABLE_LEVELS > 2 typedef struct { |