[U-Boot] [PATCH] lib_ppc: rework the flush_cache

Liu Dave DaveLiu at freescale.com
Thu Dec 4 00:23:49 CET 2008


> start_addr = 0
> size = 0x1000
> 
> start will be 0
> end will be 0x1000
> 
> The loop will flush the cache line at 0x1000, because it uses 
> <= rather than <.  That is outside the area that was requested to be
flushed. 
> Maybe it's not mapped.  Or, maybe start + size = 0 and > nothing gets
flushed.

thanks, I got it.
it was off-one error.





More information about the U-Boot mailing list