projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa2bbce
)
x86, 64bit, realmode: Use init_level4_pgt to set trampoline_pgd directly
author
Yinghai Lu
<
[email protected]
>
Thu, 24 Jan 2013 20:19:50 +0000
(12:19 -0800)
committer
H. Peter Anvin
<
[email protected]
>
Tue, 29 Jan 2013 23:12:30 +0000
(15:12 -0800)
with #PF handler way to set early page table, level3_ident will go away with
64bit native path.
So just use entries in init_level4_pgt to set them in trampoline_pgd.
Signed-off-by: Yinghai Lu <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Cc: Jarkko Sakkinen <
[email protected]
>
Acked-by: Jarkko Sakkinen <
[email protected]
>
Signed-off-by: H. Peter Anvin <
[email protected]
>
arch/x86/realmode/init.c
patch
|
blob
|
history
diff --git
a/arch/x86/realmode/init.c
b/arch/x86/realmode/init.c
index c44ea7cf5741ce7c890e09f06a30eaaf2390acec..ffee06ac7de9d0a5f0c0a6ddb52a359ce937b6b7 100644
(file)
--- 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(level3_ident_pgt) + _KERNPG_TABLE
;
- trampoline_pgd[511] =
__pa(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
}