public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Conflicting definitions of flush_dcache
@ 2011-10-31  7:56 Stefan Kristiansson
  2011-10-31 18:32 ` Mike Frysinger
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Kristiansson @ 2011-10-31  7:56 UTC (permalink / raw)
  To: u-boot

Hi,

I noticed the following dilemma when I tried to enable both
CONFIG_ETHOC and CONFIG_CMD_CACHE:

The ethoc ethernet driver expects:
void flush_dcache(unsigned long start, unsigned long size)
while cmd_cache.c expect it to be:
void flush_dcache(void)

Grepping around the sources, I found that apart from drivers/net/ethoc.c
also drivers/net/altera_tse.c uses flush_dcache with the two ulong parameters.
No architecture apart from nios2 seems to provide flush_dcache like this
and flush_dcache is not declared in common.h,
so my gut feeling is that nios2 and the 2 ethernet drivers should be
changed to use for example flush_dcache_range(?)
Perhaps cmd_cache.c should also be fixed to use flush_dcache_all()?
flush_icache() ofcourse suffer from the same problem.

Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-06 21:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31  7:56 [U-Boot] Conflicting definitions of flush_dcache Stefan Kristiansson
2011-10-31 18:32 ` Mike Frysinger
2011-11-01  2:01   ` Thomas Chou
2011-11-01  4:21   ` [U-Boot] [PATCH] cmd_cache: use cache/invalidate functions available in common.h Stefan Kristiansson
2011-11-01 15:17     ` Mike Frysinger
2012-03-06 21:13     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox