On Tuesday, December 07, 2010 07:44:53 Sergey Mironov wrote:
> I'm porting u-boot on our arm1176-based SoC which uses greth as
> ethernet controller. I have removed sparc code from greth.c and now
> almost ready to send the patch. Last thing to fix is cache flusher
> function which is required by the driver. Originally algorithm used
> sparc_flush_cachces which is not suitable for the driver.
> 
> Is there any 'official' guidelines on using the caches? What
> hardware-abstract function should I prefer?

if the func is defined in include/*.h, it tends to be OK to use portability 
(ignoring the arch-specific files which shouldnt be in include/).  in terms of 
cache, a simple grep tells you the answer:
        grep cache include/common.h
-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