author: Arnd Bergmann <arnd@arndb.de> 2020-11-11 17:52:58 +0100
committer: Arnd Bergmann <arnd@arndb.de> 2020-11-16 16:57:18 +0100
commit: cef397038167ac15d085914493d6c86385773709
parent: f8394f232b1eab649ce2df5c5f15b0e528c92091
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h
index f1ed17edb085..163641726a2b 100644
--- a/arch/arc/include/asm/pgtable.h
+++ b/arch/arc/include/asm/pgtable.h
@@ -134,8 +134,10 @@
#ifdef CONFIG_ARC_HAS_PAE40
#define PTE_BITS_NON_RWX_IN_PD1 (0xff00000000 | PAGE_MASK | _PAGE_CACHEABLE)
+#define MAX_POSSIBLE_PHYSMEM_BITS 40
#else
#define PTE_BITS_NON_RWX_IN_PD1 (PAGE_MASK | _PAGE_CACHEABLE)
+#define MAX_POSSIBLE_PHYSMEM_BITS 32
#endif
/**************************************************************************