diff options
-rw-r--r-- | arch/x86_64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 40ed13d263..675a456913 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -344,7 +344,7 @@ void __meminit init_memory_mapping(unsigned long start, unsigned long end) | |||
344 | pud_t *pud; | 344 | pud_t *pud; |
345 | 345 | ||
346 | if (after_bootmem) | 346 | if (after_bootmem) |
347 | pud = pud_offset_k(pgd, __PAGE_OFFSET); | 347 | pud = pud_offset_k(pgd, start & PGDIR_MASK); |
348 | else | 348 | else |
349 | pud = alloc_low_page(&map, &pud_phys); | 349 | pud = alloc_low_page(&map, &pud_phys); |
350 | 350 | ||