Commit c7ea1a96 authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds

[PATCH] x86_64: Use correct PUD for memory hotadd

Memory >39bits has a different PUD.

Cc: "Tolentino, Matthew E" <matthew.e.tolentino@intel.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent af8fc1f5
...@@ -344,7 +344,7 @@ void __meminit init_memory_mapping(unsigned long start, unsigned long end) ...@@ -344,7 +344,7 @@ void __meminit init_memory_mapping(unsigned long start, unsigned long end)
pud_t *pud; pud_t *pud;
if (after_bootmem) if (after_bootmem)
pud = pud_offset_k(pgd, __PAGE_OFFSET); pud = pud_offset_k(pgd, start & PGDIR_MASK);
else else
pud = alloc_low_page(&map, &pud_phys); pud = alloc_low_page(&map, &pud_phys);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment