diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2020-12-23 18:56:09 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2020-12-26 19:04:57 +0000 |
commit | 6270ee0b672614efe3e2a2384ec04721608a9658 (patch) | |
tree | 69bcf2f1ab08228fef577fd8b7f101cb9e53c06c | |
parent | 2f00fe725b7a17c2be61bf5986b4b7a78c956bbe (diff) | |
download | src-6270ee0b672614efe3e2a2384ec04721608a9658.tar.gz src-6270ee0b672614efe3e2a2384ec04721608a9658.zip |
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
-rw-r--r-- | sys/arm64/arm64/locore.S | 2 |
1 files changed, 1 insertions, 1 deletions
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 |