linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC] x86 fix for stable
@ 2008-07-20 15:15 Oliver Pinter
  2008-07-20 15:24 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Pinter @ 2008-07-20 15:15 UTC (permalink / raw)
  To: stable; +Cc: Jack Steiner, linux-mm, Ingo Molnar

git id: e22146e610bb7aed63282148740ab1d1b91e1d90

commit e22146e610bb7aed63282148740ab1d1b91e1d90
Author: Jack Steiner <steiner@sgi.com>
Date:   Wed Jul 16 11:11:59 2008 -0500

    x86: fix kernel_physical_mapping_init() for large x86 systems

    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>

diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 27de243..306049e 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -644,7 +644,7 @@ static unsigned long __init
kernel_physical_mapping_init(unsigned long start,
 		unsigned long pud_phys;
 		pud_t *pud;

-		next = start + PGDIR_SIZE;
+		next = (start + PGDIR_SIZE) & PGDIR_MASK;
 		if (next > end)
 			next = end;



-- 
Thanks,
Oliver

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-20 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 15:15 [RFC] x86 fix for stable Oliver Pinter
2008-07-20 15:24 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox