]> Git Repo - J-linux.git/commit
arm64: Cleanup __cpu_set_tcr_t0sz()
authorSeongsu Park <[email protected]>
Thu, 23 May 2024 12:21:46 +0000 (21:21 +0900)
committerCatalin Marinas <[email protected]>
Mon, 24 Jun 2024 18:05:01 +0000 (19:05 +0100)
commitcf938f91784f5b35d16fa9fc746a3bb03659ab50
treedc2455f193e99d868a44328056d6969c11002c5f
parent573611145fcb6325a28c462aca3753e257a0b2a6
arm64: Cleanup __cpu_set_tcr_t0sz()

The T0SZ field of TCR_EL1 occupies bits 0-5 of the register and encode
the virtual address space translated by TTBR0_EL1. When updating the
field, for example because we are switching to/from the idmap page-table,
__cpu_set_tcr_t0sz() erroneously treats its 't0sz' argument as unshifted,
resulting in harmless but confusing double shifts by 0 in the code.

Co-developed-by: Leem ChaeHoon <[email protected]>
Signed-off-by: Leem ChaeHoon <[email protected]>
Signed-off-by: Seongsu Park <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/include/asm/mmu_context.h
This page took 0.046225 seconds and 4 git commands to generate.