From 1605cc9e1bf193021e86048295148c45a185410d Mon Sep 17 00:00:00 2001 From: Becky Bruce Date: Mon, 3 Oct 2011 19:10:51 -0500 Subject: 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 Acked-by: York Sun Signed-off-by: Kumar Gala --- include/mpc86xx.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mpc86xx.h') diff --git a/include/mpc86xx.h b/include/mpc86xx.h index eb85d60cad..31e83f2cc9 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__ */ -- cgit v1.2.3