svn commit: r365039 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Tue Sep 1 14:50:43 UTC 2020
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
More information about the svn-src-head
mailing list