git: 6270ee0b6726 - Use the base address for early arm64 page tables

Andrew Turner andrew at FreeBSD.org
Sat Dec 26 19:10:21 UTC 2020


The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=6270ee0b672614efe3e2a2384ec04721608a9658

commit 6270ee0b672614efe3e2a2384ec04721608a9658
Author:     Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2020-12-23 18:56:09 +0000
Commit:     Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2020-12-26 19:04:57 +0000

    Use the base address for early arm64 page tables
    
    Use the kernel physical base rather than the ttbr0 base when building
    the kernel identity map. The latter is correct with current assumptions
    but may not always be the case.
    
    Sponsored by:   Innovate UK
---
 sys/arm64/arm64/locore.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index 20a0379a9aa1..3e7ea7b44b70 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -522,7 +522,7 @@ common:
 
 	/* Create the VA = PA map */
 	mov	x7, #(ATTR_S1_nG | ATTR_S1_IDX(VM_MEMATTR_WRITE_BACK))
-	mov	x9, x27
+	mov	x9, x28
 	mov	x8, x9		/* VA start (== PA start) */
 	mov	x10, #1
 	bl	build_l1_block_pagetable


More information about the dev-commits-src-all mailing list