[U-Boot-Users] [PATCH] ppc4xx: Add dcache_enable() for 440

Wolfgang Denk wd at denx.de
Mon Apr 21 07:04:43 CEST 2008


In message <200804210658.07170.sr at denx.de> you wrote:
>
> So what do you suggest instead? Removing these functions completely for 440? 

Please let's either proviude real, working implementations, or remove
the functions.

> This would result in bigger changes to common code currently using those 
> functions (especially dcache_disable). Probably by using more #ifdefs there 
> which I would really like not to see.

I don't like to see these either, but it's better than lying in the
face of the user.

> OK, I removed this patch from my custodian repository. But I assume that you 
> are you asking for additional changes too. Are you asking me to remove (a) 
> all dummy cache entries or (b) to support *real* cache support functions for 
> 440? (a) would lead as explained above to bigger code changes in the common 
> code and (b) is extremely difficult and I just have no time for such a thing 
> currently.

Yes, let's do either (a) or (b). There is no other choice.

> BTW: All the already existing 440 dummy cache entries were not introduced by 
> myself.

I am aware of this.

> > Yes,  I  am  aware  that  the   current   (new)   implementation   of
> > do_bootelf_exec()  needs  to  be fixed for this, too - and maybe some
> > other places as well. But this is important enough to me.
> 
> Understood. We should propably revert this patch then.

This still leaves the problem of the current "implementation" of  the
other  stubs. Please note that as is, we even have *random* behaviour
of the code, as the  functions  are  supposed  to  return  the  cache
status, but no return value gets loaded.

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
You're dead, Jim.
	-- McCoy, "The Tholian Web", stardate unknown




More information about the U-Boot mailing list