Author: alc
Date: Tue Jun  1 19:56:02 2010
New Revision: 208720
URL: http://svn.freebsd.org/changeset/base/208720

Log:
  In the case that mmu_booke_enter_locked() is changing the attributes of a
  mapping but not changing the physical page being mapped, the wrong flags
  were being inspected in order to determine whether or not to flush the
  instruction cache.  The effect of looking at the wrong flags was that the
  instruction cache was never being flushed.
  
  Reviewed by:  marcel

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c       Tue Jun  1 19:39:27 2010        
(r208719)
+++ head/sys/powerpc/booke/pmap.c       Tue Jun  1 19:56:02 2010        
(r208720)
@@ -1621,7 +1621,7 @@ mmu_booke_enter_locked(mmu_t mmu, pmap_t
                         * are turning execute permissions on, icache should
                         * be flushed.
                         */
-                       if ((flags & (PTE_UX | PTE_SX)) == 0)
+                       if ((pte->flags & (PTE_UX | PTE_SX)) == 0)
                                sync++;
                }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to