]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Remove and replace uses of PPC_MEMSTART with memstart_addr
authorKumar Gala <galak@kernel.crashing.org>
Tue, 15 Apr 2008 19:52:21 +0000 (05:52 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:12 +0000 (07:46 +1000)
commit763cff2ff979f778b4d227dd662a7ff682cdc53e
tree7641433c9a3358c5dc108f2d3d4894f5f96f0b19
parent7b4fa82700f1445fc66cf6be4ca2df5ba482bf6a
[POWERPC] Remove and replace uses of PPC_MEMSTART with memstart_addr

A number of users of PPC_MEMSTART (40x, ppc_mmu_32) can just always
use 0 as we don't support booting these kernels at non-zero physical
addresses since their exception vectors must be at 0 (or 0xfffx_xxxx).

For the sub-arches that support relocatable interrupt vectors
(book-e), it's reasonable to have memory start at a non-zero physical
address.  For those cases use the variable memstart_addr instead of
the #define PPC_MEMSTART since the only uses of PPC_MEMSTART are for
initialization and in the future we can set memstart_addr at runtime
to have a relocatable kernel.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/40x_mmu.c
arch/powerpc/mm/fsl_booke_mmu.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/mmu_decl.h
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/ppc_mmu_32.c
include/asm-powerpc/page_32.h