diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2011-10-03 19:10:51 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-10-09 17:57:54 -0500 |
commit | 1605cc9e1bf193021e86048295148c45a185410d (patch) | |
tree | fdb937e62e3ba818f137971320f10daead763d01 /include/mpc86xx.h | |
parent | e3fd652087cd9633a0920667a3920ee757f948e7 (diff) | |
download | u-boot-imx-1605cc9e1bf193021e86048295148c45a185410d.zip u-boot-imx-1605cc9e1bf193021e86048295148c45a185410d.tar.gz u-boot-imx-1605cc9e1bf193021e86048295148c45a185410d.tar.bz2 |
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>
Diffstat (limited to 'include/mpc86xx.h')
-rw-r--r-- | include/mpc86xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mpc86xx.h b/include/mpc86xx.h index eb85d60..31e83f2 100644 --- a/include/mpc86xx.h +++ b/include/mpc86xx.h @@ -84,6 +84,7 @@ static __inline__ unsigned long get_l2cr (void) } void setup_ddr_bat(phys_addr_t dram_size); +extern void setup_bats(void); #endif /* _ASMLANGUAGE */ #endif /* __MPC86xx_H__ */ |