tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cache invalidation in modload



On Thu, Jan 01, 2009 at 08:35:41PM +0200, Antti Kantee wrote:
> Hi,
> 
> Why is cache invalidation, i.e. kobj_machdep(), required after loading
> a module?  The module loading code doesn't appear to do anything
> magically mystically mythical which would require a flush.  The only
> reason I could even begin to imagine was to flush the instruction cache.
> But at least on x86 this is not required according to my interpretation
> of the Intel manuals.

The intent is probably to flush the data cache - so that when code is
read the newly loaded data is found.
I-cache loads probably don't snoop the D-cache.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index