diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-11-06 09:49:28 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-11-06 09:49:28 +0100 |
commit | 75ec4eb3dc84ee78533bd59bbb71992187bd86fd (patch) | |
tree | b75afe1763e5a21bfe508301562c037fbae2b04d /arch/x86/kernel/head_64.S | |
parent | 19c5787a5ff88a959e5854ab6ddef7f5777c5837 (diff) | |
parent | 15670bfe19905b1dcbb63137f40d718b59d84479 (diff) | |
download | linux-stable-75ec4eb3dc84ee78533bd59bbb71992187bd86fd.tar.gz linux-stable-75ec4eb3dc84ee78533bd59bbb71992187bd86fd.tar.bz2 linux-stable-75ec4eb3dc84ee78533bd59bbb71992187bd86fd.zip |
Merge branch 'x86/mm' into x86/asm, to pick up pending changes
Concentrate x86 MM and asm related changes into a single super-topic,
in preparation for larger changes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/head_64.S')
-rw-r--r-- | arch/x86/kernel/head_64.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 08f067faa264..c03e02a83c4e 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -37,11 +37,12 @@ * */ -#define p4d_index(x) (((x) >> P4D_SHIFT) & (PTRS_PER_P4D-1)) #define pud_index(x) (((x) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) +#if defined(CONFIG_XEN_PV) || defined(CONFIG_XEN_PVH) PGD_PAGE_OFFSET = pgd_index(__PAGE_OFFSET_BASE) PGD_START_KERNEL = pgd_index(__START_KERNEL_map) +#endif L3_START_KERNEL = pud_index(__START_KERNEL_map) .text @@ -361,10 +362,7 @@ NEXT_PAGE(early_dynamic_pgts) .data -#ifndef CONFIG_XEN -NEXT_PAGE(init_top_pgt) - .fill 512,8,0 -#else +#if defined(CONFIG_XEN_PV) || defined(CONFIG_XEN_PVH) NEXT_PAGE(init_top_pgt) .quad level3_ident_pgt - __START_KERNEL_map + _KERNPG_TABLE_NOENC .org init_top_pgt + PGD_PAGE_OFFSET*8, 0 @@ -381,6 +379,9 @@ NEXT_PAGE(level2_ident_pgt) * Don't set NX because code runs from these pages. */ PMDS(0, __PAGE_KERNEL_IDENT_LARGE_EXEC, PTRS_PER_PMD) +#else +NEXT_PAGE(init_top_pgt) + .fill 512,8,0 #endif #ifdef CONFIG_X86_5LEVEL |