On Wed, Jan 03, 2001 at 07:26:23PM -0800, Jun Sun wrote:
> Aside of that, the name of flush_icache_range() seems to be misleading. Also
> in general how does it know which part of dcache to flush() without a given
> process mm struct?
The function is only intended to flush kernel addresses for which no mm
exists. Yes, it's being abused in creative ways but that's the purpose
it was designed for ...
> If it does not know, the only choice is to flush the whole
> dcache, which seems to make this function very close to flush_all().
> Is this function introduced by other CPU platforms? How would it make a
> difference there? I am just curious ...
Others such as for example m68k need it as well.