This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]