]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: change ASYNC and SYNC TCF settings into bitfields
authorPeter Collingbourne <pcc@google.com>
Tue, 27 Jul 2021 20:52:56 +0000 (13:52 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Jul 2021 17:33:43 +0000 (18:33 +0100)
commitd8ae933666b29367a533b3717e7b6d743c3709ad
treeb1ff27c9ffcfa0ad06e5b020f6a5557a70d1d30f
parent44decb652e17899619e3b9f830be63b92d160537
arm64: mte: change ASYNC and SYNC TCF settings into bitfields

Allow the user program to specify both ASYNC and SYNC TCF modes by
repurposing the existing constants as bitfields. This will allow the
kernel to select one of the modes on behalf of the user program. With
this patch the kernel will always select async mode, but a subsequent
patch will make this configurable.

Link: https://linux-review.googlesource.com/id/Icc5923c85a8ea284588cc399ae74fd19ec291230
Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210727205300.2554659-3-pcc@google.com
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/processor.h
arch/arm64/kernel/mte.c
include/uapi/linux/prctl.h