Hi, first of all thank you all for the answers ! On 9/14/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
> On 9/13/06, Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> wrote: > > On Wed, 2006-09-13 at 12:58 +0200, Jakko Pastuchio wrote: > > > I've noticed that the flush_icache_* routines on the i386 > > > are nothing more than an empty do{}while(0) stub. > > > does anyone know why is that ? > but what about events when the *physical* address space has changed > (e.g. module loading) ? we still need to invalidate the cache, don't we ? Nope; the x86 architecture is defined to be fully cache coherent, including in this way. The only corner case I know of is if you are doing self modifying code and you are changing your own/next instruction.
why is that ? won't the cache be automatically updated if you write to the text section, like it does in other cases ? (i'm basing this assumption on the previous answers in this thread)
you can invalidate ALL the caches, but you generally don't need to do that...
how can that be done ? It seems that even flush_cache_all is empty. and in general, does these flush routines invalidates the caches (or just flush the data to the next layer, in case of write-back caches) ? Thanks you very very much ! Jakko
-- if you want to mail me at work (you don't), use arjan (at) linux.intel.com
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/