[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: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
af8fc1f528
commit
c7ea1a96ec
|
@ -344,7 +344,7 @@ void __meminit init_memory_mapping(unsigned long start, unsigned long end)
|
|||
pud_t *pud;
|
||||
|
||||
if (after_bootmem)
|
||||
pud = pud_offset_k(pgd, __PAGE_OFFSET);
|
||||
pud = pud_offset_k(pgd, start & PGDIR_MASK);
|
||||
else
|
||||
pud = alloc_low_page(&map, &pud_phys);
|
||||
|
||||
|
|
Loading…
Reference in New Issue