[parisc-linux] flush_tlb_all_local:

John David Anglin dave@hiauly1.hia.nrc.ca
Mon, 13 Oct 2003 14:57:19 -0400 (EDT)


> On Sun, Oct 12, 2003 at 09:12:58PM -0600, Grant Grundler wrote:
> > On Sun, Oct 12, 2003 at 04:07:50PM +0000, Joel Soete wrote:
> > > Why twice 'mtctl   %r0, %cr17'?
> > 
> > Good question. No clue. Looks like a brain fart since clearing it
> >  once should work unless there's a weird bug. I'll remove it.
> 
> definitely not a brainfart. Read PA2.0 arch book (section 2) where
> it talks about cr17/cr18. CR17 is two registers and writing it twice
> clear both head/tail of the IIAS. Just like cr18 is also written twice.

Probably, there should be a comment in the code noting this special
behavior.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)