]> 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)
commitbe4b925d276f552edb104f401b3d55a8b605c3bd
treeb1ff27c9ffcfa0ad06e5b020f6a5557a70d1d30f
parent97254ec4e5f539b2e1f4ed0c106a0c62d7dffa59
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