]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/mpc86xx: Disable translation for BAT setup
authorBecky Bruce <beckyb@kernel.crashing.org>
Tue, 4 Oct 2011 00:10:51 +0000 (19:10 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 9 Oct 2011 22:57:54 +0000 (17:57 -0500)
commit1605cc9e1bf193021e86048295148c45a185410d
treefdb937e62e3ba818f137971320f10daead763d01
parente3fd652087cd9633a0920667a3920ee757f948e7
powerpc/mpc86xx: Disable translation for BAT setup

We really shouldn't be overwriting bat registers with translation enabled,
especially when we're executing code using one of them for translating
the current instruction stream.  Instead, disable address translation
while doing the final BAT setup.

In order to do this, setup_bats has to move back to asm code, because we
require translation to be enabled to have a stack for C code.  The yucky
thing about that is that the assembler doesn't like ULL so we have to
switch to using HIGH/LOW pairs for physical addresses that are > 32 bits
in length.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Acked-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc86xx/cpu_init.c
arch/powerpc/cpu/mpc86xx/start.S
include/configs/MPC8641HPCN.h
include/mpc86xx.h