Messages in this thread Patch in this message | | | Date | Wed, 30 Jul 2008 16:27:19 -0700 | From | Greg KH <> | Subject | [patch 17/29] x86: fix kernel_physical_mapping_init() for large x86 systems |
| |
2.6.25-stable review patch. If anyone has any objections, please let us know.
------------------ From: Ingo Molnar <mingo@elte.hu>
based on e22146e610bb7aed63282148740ab1d1b91e1d90 upstream
Fix bug in kernel_physical_mapping_init() that causes kernel page table to be built incorrectly for systems with greater than 512GB of memory.
Signed-off-by: Jack Steiner <steiner@sgi.com> Cc: linux-mm@kvack.org Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Oliver Pinter <oliver.pntr@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- arch/x86/mm/init_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -427,7 +427,7 @@ void __init_refok init_memory_mapping(un else pud = alloc_low_page(&pud_phys); - next = start + PGDIR_SIZE; + next = (start + PGDIR_SIZE) & PGDIR_MASK; if (next > end) next = end; phys_pud_init(pud, __pa(start), __pa(next)); --
| |