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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to