From: Mike Frysinger Date: Fri, 7 Oct 2011 13:34:19 -0400 Subject: [U-Boot] [PATCH 4/6] davinci_emac: fix for running with dcache enabled In-Reply-To: <1317857806-16549-5-git-send-email-yanok@emcraft.com> References: <1317857806-16549-1-git-send-email-yanok@emcraft.com> <1317857806-16549-5-git-send-email-yanok@emcraft.com> Message-ID: <201110071334.20378.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 05 October 2011 19:36:44 Ilya Yanok wrote: > --- a/drivers/net/davinci_emac.c > +++ b/drivers/net/davinci_emac.c > > +#ifdef DAVINCI_EMAC_DCACHE > +static inline void davinci_flush(void *addr, int size) > +{ > + flush_dcache_range((unsigned long)addr, > + (unsigned long)addr + size); > +} > + > +static inline void davinci_invalidate(void *addr, int size) > +{ > + invalidate_dcache_range((unsigned long)addr, > + (unsigned long)addr + size); > +} > +#else > +#define davinci_flush(addr, size) do {} while (0) > +#define davinci_invalidate(addr, size) do {} while (0) > +#endif does it really make sense to have this be conditional ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111007/af40ca92/attachment.pgp