This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Why is the DCACHE and ICACHE enabled twice?
On Fri, 2004-09-24 at 13:57, Krishna Ganugapati wrote:
> Hello, can someone explain why the IXDP425 dcache and icache are enabled
> twice -
>
> the first time in
>
> /usr/src/ecos/packages/hal/arm/xscale/ixdp425/current/include/hal_platform_setup.h
>
> and the second time
>
> /usr/src/ecos/packages/arm/xscale/ixp425/current/src/ixp425_misc.c ->
> hal_hardware_init
In general, you want to enable the caches as early as possible. The
enabling in hal_platform_setup is early in the ROM startup boot. The
early part of RAM startup is hal_hardware_init. The fact that the caches
are enabled twice for ROM startup shouldn't cause a problem. At least I
can't remember any problems popping up before.
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss