Messages in this thread Patch in this message | | | From | Yinghai Lu <> | Subject | [PATCH v7 04/27] x86, realmode: use init_level4_pgt to set trapmoline_pgt directly | Date | Mon, 17 Dec 2012 23:15:36 -0800 |
| |
with #PF handler way to set early page table, level3_ident will go away.
So just use entry in init_level4_pgt to set them
Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- arch/x86/realmode/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c index 0b7e840..815eec1 100644 --- a/arch/x86/realmode/init.c +++ b/arch/x86/realmode/init.c @@ -78,8 +78,8 @@ void __init setup_real_mode(void) *trampoline_cr4_features = read_cr4(); trampoline_pgd = (u64 *) __va(real_mode_header->trampoline_pgd); - trampoline_pgd[0] = __pa_symbol(level3_ident_pgt) + _KERNPG_TABLE; - trampoline_pgd[511] = __pa_symbol(level3_kernel_pgt) + _KERNPG_TABLE; + trampoline_pgd[0] = init_level4_pgt[pgd_index(__PAGE_OFFSET)].pgd; + trampoline_pgd[511] = init_level4_pgt[511].pgd; #endif } -- 1.7.10.4
| |