Re: How does bsd deal with architectures that have cache aliasing?

Andrew Brown <[email protected]> Fri, 28 Feb 2003 13:26:27 -0500
Newsgroups gmane.os.netbsd.devel.ports,gmane.os.netbsd.devel.general
Message-ID <[email protected]>
>If someone wouldn't mind pointing at the relevant pieces of the
>kernel that deals with cache aliasing for hardware that has
>this "feature" I would appreciate it.  I just wanted to get
>the gist of how the BSD kernel deals with this issue.

if i understand your question, the answer is probably: look through
the kernel source for PMAP_PREFER().  that's the machine-dependent
hook into vm that attempts to align mappings for optimal cache effect.

-- 
|-----< "CODE WARRIOR" >-----|
[email protected]             * "ah!  i see you have the internet
[email protected] (Andrew Brown)                that goes *ping*!"
[email protected]       * "information is power -- share the wealth."