[ECOS] Why is the DCACHE and ICACHE enabled twice?

Krishna Ganugapati krishnag@marakicorp.com
Sat Sep 25 16:49:00 GMT 2004


And when I read the strataflash configuration in flash_query, I don't crash 
anymore -  I seem to read the FLASH_query data structure without throwing an 
exception except I read junk - following which flash_hwr_init says it cannot 
figure out what kind of flash I have and bails. I still get a redboot prompt 
but without any of the strata flash stuff...:-(
-------------------------------------------------
----- Original Message ----- 
From: "Krishna Ganugapati" <krishnag@marakicorp.com>
To: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Friday, September 24, 2004 10:57 AM
Subject: [ECOS] Why is the DCACHE and ICACHE enabled twice?


> 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
>
> I find the following:
>
> 1) If I disable my dcache (in both places) works fine except when I try to 
> initialize my strataflash
>
> 2) If I enable them, then I crash in hal_hardware_init - the second time I 
> try to enable the dcache. I've disabled the second one and still see the 
> same result...
>
> Any thoughts and if not, can someone explain to me why we have code in 
> both places at initialization time,
>
>
> Thanks
>
> Krishna
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list