[U-Boot-Users] disabling d-cache in 'bootelf' for QNX

Wolfgang Denk wd at denx.de
Thu Jan 3 17:45:58 CET 2008


Dear Rafal,

in message <477CB941.2020001 at semihalf.com> you wrote:
> 
> Indeed, in certain cases it does actually (e.g. 86xx), but it's not uniform
> unfortunatelly. In my case (85xx) dcache_disable() does not flush the cache
> before disabling.

I consider this a bug in the 85xx code, then. The bug should be fixed,
and not worked around it.

> Yeah, after a second thought I tend to agree. Maybe the way to go is doing
> data cache flush from within dcache_disable() properly i.e. bring it in for
> arch variations that don't do it currently like 85xx... Actually to confirm my
> observations I tested a working patch that flushes d-cache at cache_disable()
> just like 86xx and it works for me, this is: my problems disappear. Do you
> think this is a better option?

Yes, indeed.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human race has one really effective weapon, and that is laughter.
                                                         - Mark Twain




More information about the U-Boot mailing list