]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: insn: Add support for encoding DSB
authorJames Morse <james.morse@arm.com>
Sat, 7 Jun 2025 15:35:29 +0000 (15:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:37 +0000 (11:05 +0100)
commit3af65d4123fe8353c30ba64507e37bfae56a7650
tree6bfb96e3d2f07c9040f4ca71b70fbaf77113f8d1
parent803228bb5ad9b9e6b6355c3a0d2b637e4b122c72
arm64: insn: Add support for encoding DSB

[ Upstream commit 63de8abd97ddb9b758bd8f915ecbd18e1f1a87a0 ]

To generate code in the eBPF epilogue that uses the DSB instruction,
insn.c needs a heler to encode the type and domain.

Re-use the crm encoding logic from the DMB instruction.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/insn.h
arch/arm64/lib/insn.c