sh: Fix up legacy PTEA space attribute mapping.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 11 Jan 2011 06:02:59 +0000 (15:02 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 11 Jan 2011 06:02:59 +0000 (15:02 +0900)
commitefb3e34b6176d30c4fe8635fa8e1beb6280cc2cd
treee5ed3fee988e3816a9f4ea47bf83970a010cb83e
parent11e1ed6e88616be5489a43bc6297d9bb8464908b
sh: Fix up legacy PTEA space attribute mapping.

When p3_ioremap() was converted to ioremap_prot() there was some breakage
introduced where the 29-bit segmentation logic would trap the area range
and return an identity mapping without having allowed the area
specification to force mapping through page tables. This wires up a PCC
mask for pgprot verification to work out whether to short-circuit the
identity mapping on legacy parts, restoring the previous behaviour.

Reported-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/io.h
arch/sh/include/asm/pgtable_32.h