powerpc/mm: Fix slice state initialization for Book3E
authorMichael Ellerman <michael@ozlabs.org>
Tue, 12 Apr 2011 19:00:05 +0000 (19:00 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 06:59:20 +0000 (16:59 +1000)
commitee7a2aa3d3fd10a7157dd19f737b2bafdea0458f
tree2b562ba93b3c623d032c4808774366e357f21803
parent5e8e7b404ac965be45e25d5538676151de89aefb
powerpc/mm: Fix slice state initialization for Book3E

On Book3E, MMU_NO_CONTEXT != 0, but the slice_mm_new_context()
macro assumes that it is.  This means that the map of the
page sizes for each slice is always initialized to zeroes
(which happens to be 4k pages), rather than to the correct
default base page size value - which might be 64k.

This patch corrects the problem.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/page_64.h