powerpc/ppc32: Fixup pmd_page to work when ARCH_PFN_OFFSET is non-zero
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tue, 9 Mar 2010 09:35:00 +0000 (09:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 08:00:30 +0000 (18:00 +1000)
commit43b5fefc24157def813154d1867d2960cefff837
treebf0e6e0d9203267984a49474c68f59422a66f686
parent6fe9d1facb5346a615f9b571df3b91593afb29c3
powerpc/ppc32: Fixup pmd_page to work when ARCH_PFN_OFFSET is non-zero

Instead of referencing mem_map directly, use pfn_to_page. Otherwise
the kernel crashes when trying to start userspace if ARCH_PFN_OFFSET is
non-zero and CONFIG_BOOKE is not defined

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pgtable-ppc32.h