[RFC PATCH 2/6] dirty hack, fixme: disable mmu_cache_flush in arch/arm/cpu/start.c for Tegra
Sascha Hauer
s.hauer at pengutronix.de
Thu Oct 6 07:07:26 EDT 2011
On Thu, Sep 29, 2011 at 06:04:32PM +0400, Antony Pavlov wrote:
> Initial Tegra support has no initialisation routines, so
> it can't initialise the caches in the right way.
Not nice, but I currently do not see a much better way around this.
I think this is ok for now.
Sascha
>
> MMU & cache code in arch/arm/cpu/start.c hangs up a Tegra-based system.
>
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
> arch/arm/cpu/start.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c
> index f8eb0a9..69fb5b0 100644
> --- a/arch/arm/cpu/start.c
> +++ b/arch/arm/cpu/start.c
> @@ -74,6 +74,8 @@ void __naked __bare_init reset(void)
> #ifdef CONFIG_ARCH_HAS_LOWLEVEL_INIT
> arch_init_lowlevel();
> #endif
> +
> +#ifndef CONFIG_ARCH_TEGRA
> __asm__ __volatile__ (
> "bl __mmu_cache_flush;"
> :
> @@ -89,6 +91,7 @@ void __naked __bare_init reset(void)
> r |= CR_B;
> #endif
> set_cr(r);
> +#endif
>
> #ifdef CONFIG_MACH_DO_LOWLEVEL_INIT
> board_init_lowlevel();
> --
> 1.7.6.3
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list