sh: Fix up more 64-bit pgprot truncation on SH-X2 TLB.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 04:23:00 +0000 (13:23 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 17 Feb 2010 04:23:00 +0000 (13:23 +0900)
commit7bdda6209f224aa784a036df54b22cb338d2e859
tree2c2ce99f0ec55386246379ffb8412b3a893402b0
parent49f3bfe9334a4cf86079d2ee1d08e674b58862a9
sh: Fix up more 64-bit pgprot truncation on SH-X2 TLB.

Both the store queue API and the PMB remapping take unsigned long for
their pgprot flags, which cuts off the extended protection bits. In the
case of the PMB this isn't really a problem since the cache attribute
bits that we care about are all in the lower 32-bits, but we do it just
to be safe. The store queue remapping on the other hand depends on the
extended prot bits for enabling userspace access to the mappings.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/mmu.h
arch/sh/include/cpu-sh4/cpu/sq.h
arch/sh/kernel/cpu/sh4/sq.c
arch/sh/mm/ioremap.c
arch/sh/mm/pmb.c
drivers/video/pvr2fb.c