aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/pgtable_32_types.h
diff options
context:
space:
mode:
authorGravatar Kirill A. Shutemov <kirill.shutemov@linux.intel.com> 2018-02-14 14:16:51 +0300
committerGravatar Ingo Molnar <mingo@kernel.org> 2018-02-14 13:11:14 +0100
commite626e6bb0dfaca41487241d49ce0ae827716101a (patch)
treee1df3c591a7ee34d68d5e53be47310f08d6c4e98 /arch/x86/include/asm/pgtable_32_types.h
parentx86/mm: Make virtual memory layout dynamic for CONFIG_X86_5LEVEL=y (diff)
downloadlinux-e626e6bb0dfaca41487241d49ce0ae827716101a.tar.gz
linux-e626e6bb0dfaca41487241d49ce0ae827716101a.tar.bz2
linux-e626e6bb0dfaca41487241d49ce0ae827716101a.zip
x86/mm: Introduce 'pgtable_l5_enabled'
The new flag would indicate what paging mode we are in. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20180214111656.88514-5-kirill.shutemov@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/pgtable_32_types.h')
-rw-r--r--arch/x86/include/asm/pgtable_32_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable_32_types.h b/arch/x86/include/asm/pgtable_32_types.h
index 0777e18a1d23..e3225e83db7d 100644
--- a/arch/x86/include/asm/pgtable_32_types.h
+++ b/arch/x86/include/asm/pgtable_32_types.h
@@ -15,6 +15,8 @@
# include <asm/pgtable-2level_types.h>
#endif
+#define pgtable_l5_enabled 0
+
#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
#define PGDIR_MASK (~(PGDIR_SIZE - 1))