sh: Rework P2 to only include kernel text.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 21 Jan 2010 06:42:58 +0000 (15:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 21 Jan 2010 06:42:58 +0000 (15:42 +0900)
commit2023b843d7b62d99e7356b872e99abc7d6667e49
tree74e17b43ed1316c6c02055457b4291c1b050f48e
parent77c2019fc1b4495ce483ef2af9cb12bae23e353b
sh: Rework P2 to only include kernel text.

This effectively neutralizes P2 by getting rid of P1 identity mapping
for all available memory and instead only establishes a single unbuffered
PMB entry (16MB -- the smallest available) that covers the kernel.

As using segmentation for abusing caching attributes in drivers is no
longer supported (and there are no drivers that can be enabled in 32-bit
mode that do this), this provides us with all of the uncached access
needs by the kernel itself.

Drivers and their ilk need to specify their caching attributes when
remapping through page tables, as usual.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/head_32.S