This is the mail archive of the ecos-patches@sourceware.org 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]

Re: IO FLASH and caches


Edgar Grimberg <edgar.grimberg@zylin.com> writes:

> The only place where the uncached address is used is inside the area guarded by:
> 
> HAL_FLASH_CACHES_OFF(d_cache, i_cache);
> ...
> HAL_FLASH_CACHES_ON(d_cache, i_cache);
> 
> So the patch is not supposed to modify the intended access type.


OK. My quick look at the patch and the code missed that.

However, I'm stll not sure that it is necessary to change this code.
The call to the device flash_program() routine will still evict the
caches and this verification will just refill the cache with the new
flash contents. Functionally, it should remain the same. We have never
needed to make this change for other targets that have similar cache
behavior, so I'm still unclear what the issue here is.



-- 
Nick Garnett                                       eCos Kernel Architect
eCosCentric Limited    http://www.eCosCentric.com       The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.      Tel: +44 1223 245571
Registered in England and Wales:                         Reg No: 4422071


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