diff options
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r-- | arch/x86_64/kernel/setup.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index db30b5bcef61..db51577bda32 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -245,12 +245,11 @@ void __init setup_arch(char **cmdline_p) | |||
245 | init_mm.end_code = (unsigned long) &_etext; | 245 | init_mm.end_code = (unsigned long) &_etext; |
246 | init_mm.end_data = (unsigned long) &_edata; | 246 | init_mm.end_data = (unsigned long) &_edata; |
247 | init_mm.brk = (unsigned long) &_end; | 247 | init_mm.brk = (unsigned long) &_end; |
248 | init_mm.pgd = __va(__pa_symbol(&init_level4_pgt)); | ||
249 | 248 | ||
250 | code_resource.start = __pa_symbol(&_text); | 249 | code_resource.start = virt_to_phys(&_text); |
251 | code_resource.end = __pa_symbol(&_etext)-1; | 250 | code_resource.end = virt_to_phys(&_etext)-1; |
252 | data_resource.start = __pa_symbol(&_etext); | 251 | data_resource.start = virt_to_phys(&_etext); |
253 | data_resource.end = __pa_symbol(&_edata)-1; | 252 | data_resource.end = virt_to_phys(&_edata)-1; |
254 | 253 | ||
255 | early_identify_cpu(&boot_cpu_data); | 254 | early_identify_cpu(&boot_cpu_data); |
256 | 255 | ||