Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2002 17:51:32 -0800 (PST)
From:      Jake Burkholder <jake@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sparc64/sparc64 pmap.c
Message-ID:  <200203170151.g2H1pW818307@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jake        2002/03/16 17:51:32 PST

  Modified files:
    sys/sparc64/sparc64  pmap.c 
  Log:
  Fix a problem where kernel text could become unmapped when clearing out all
  the user mappings from the tlb due to the context numbers rolling over.  The
  store to the internal mmu register must be followed by a membar #Sync before
  much else happens to "avoid data corruption", so we use special inlines which
  both disable interrupts and ensure that the compiler will not insert extra
  instructions between the two.  Also, load the tte tag and check if the context
  is nucleus context, rather than relying on the priviledged bit which doesn't
  actually serve any purpose in our design, and check the lock bit too for
  sanity.
  
  Revision  Changes    Path
  1.42      +9 -8      src/sys/sparc64/sparc64/pmap.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203170151.g2H1pW818307>