]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mte: Make TCF field values and naming more standard
authorMark Brown <broonie@kernel.org>
Tue, 3 May 2022 17:02:24 +0000 (18:02 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 4 May 2022 14:30:27 +0000 (15:30 +0100)
commit753c10bb17f1dd4bc2bc02b8344af1e7ed238111
treec5352e4a12f38ef68c15bab0d39d663f5c9d5217
parent986276f26fb0a4fd415f583dd7bca501c3df3bdb
arm64/mte: Make TCF field values and naming more standard

In preparation for automatic generation of the defines for system registers
make the values used for the enumeration in SCTLR_ELx.TCF suitable for use
with the newly defined SYS_FIELD_PREP_ENUM helper, removing the shift from
the define and using the helper to generate it on use instead. Since we
only ever interact with this field in EL1 and in preparation for generation
of the defines also rename from SCTLR_ELx to SCTLR_EL1. SCTLR_EL2 is not
quite the same as SCTLR_EL1 so the conversion does not share the field
definitions.

There should be no functional change from this patch.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220503170233.507788-4-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/mte.c
arch/arm64/mm/fault.c