Author: andrew
Date: Tue Sep  1 14:50:43 2020
New Revision: 365039
URL: https://svnweb.freebsd.org/changeset/base/365039

Log:
  Ensure the tlbi has completed before setting SCTLR
  
  When enabling the MMU on arm64 we need to ensure the tlb invalidation has
  completed before setting the enable bit in the SCTLR register.
  
  Reported by:  alc
  Sponsored by: Innovate UK

Modified:
  head/sys/arm64/arm64/locore.S

Modified: head/sys/arm64/arm64/locore.S
==============================================================================
--- head/sys/arm64/arm64/locore.S       Tue Sep  1 13:58:17 2020        
(r365038)
+++ head/sys/arm64/arm64/locore.S       Tue Sep  1 14:50:43 2020        
(r365039)
@@ -677,6 +677,8 @@ start_mmu:
 
        /* Invalidate the TLB */
        tlbi    vmalle1is
+       dsb     ish
+       isb
 
        ldr     x2, mair
        msr     mair_el1, x2
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to