Skip to content

Commit

Permalink
[PATCH] x86_64: Use correct PUD for memory hotadd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Mar 25, 2006
1 parent af8fc1f commit c7ea1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c7ea1a9

Please sign in to comment.