Commit b161f924 authored by Marc Zyngier's avatar Marc Zyngier Committed by Will Deacon

arm64: Fix outdated TCR setup comment

The arm64 kernel has long be able to use more than 39bit VAs.
Since day one, actually. Let's rewrite the offending comment.
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarDavid Brazdil <dbrazdil@google.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-3-maz@kernel.orgSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 114945d8
...@@ -464,8 +464,8 @@ SYM_FUNC_START(__cpu_setup) ...@@ -464,8 +464,8 @@ SYM_FUNC_START(__cpu_setup)
#endif #endif
msr mair_el1, x5 msr mair_el1, x5
/* /*
* Set/prepare TCR and TTBR. We use 512GB (39-bit) address range for * Set/prepare TCR and TTBR. TCR_EL1.T1SZ gets further
* both user and kernel. * adjusted if the kernel is compiled with 52bit VA support.
*/ */
mov_q x10, TCR_TxSZ(VA_BITS) | TCR_CACHE_FLAGS | TCR_SMP_FLAGS | \ mov_q x10, TCR_TxSZ(VA_BITS) | TCR_CACHE_FLAGS | TCR_SMP_FLAGS | \
TCR_TG_FLAGS | TCR_KASLR_FLAGS | TCR_ASID16 | \ TCR_TG_FLAGS | TCR_KASLR_FLAGS | TCR_ASID16 | \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment