sh: Obliterate the P1 area macros
authorMatt Fleming <matt@console-pimps.org>
Tue, 6 Oct 2009 21:22:24 +0000 (21:22 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 10 Oct 2009 12:51:02 +0000 (21:51 +0900)
commit8bd642b17bea31f8361b61c16c8d154638414df4
treef501b9cc5c7d129f27a5904086a5cafdbe1b711f
parent067784f6239e08a084b4d8d597e14435331eae51
sh: Obliterate the P1 area macros

Replace the use of PHYSADDR() with __pa(). PHYSADDR() is based on the
idea that all addresses in P1SEG are untranslated, so we can access an
address's physical page as an offset from P1SEG. This doesn't work for
CONFIG_PMB/CONFIG_PMB_FIXED because pages in P1SEG and P2SEG are used
for PMB mappings and so can be translated to any physical address.

Likewise, replace a P1SEGADDR() use with virt_to_phys().

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boot/compressed/misc.c
arch/sh/include/asm/addrspace.h
arch/sh/kernel/machine_kexec.c
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh7705.c