=20
quoted
quoted
How about using clean_dcache_range() to flush the range runtime
address range [ _stext, _end ] ? That would flush the entire
instructions.
Wouldn't that result in more cache flushing than the original
solution?
quoted
For example, my kernel is 3.5MB. Assuming a 32 byte cache line
size,
quoted
clean_dcache_range(_stext, _end) would result in about 115,000
dcbst's
quoted
(3.5MB / 32).
=20
Oops ! You are right. We could go back to the=20
clean_dcache_all() or the
initial approach that you suggested. (dcbst).
Maybe clean_dcache_range() itself should limit the range
to the size of the cache?
I suspect that code can easily know the cache size.
David