This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question on hal macro: HAL_DCACHE_INVALIDATE_ALL


On Wed, 2004-05-05 at 16:50, John Newlin wrote:
> On architectures with writeback cache, should this do:
> 
> writeback + invalidate
> or simply
> invalidate

If you need the data in the cache to make it to memory, then you need
to flush (writeback).

One normally invalidates the cache when it is assumed that some other
agent has [or is about to] change memory that would make the contents
of the cache incorrect.  By invalidating the cache, new [read] accesses
will cause the contents to be refreshed from memory.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]