]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: insn: Add support for encoding DSB
authorJames Morse <james.morse@arm.com>
Thu, 9 Dec 2021 15:12:19 +0000 (15:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:10 +0000 (08:24 +0200)
commit054fc98d691a282661b8032cb3bdcba1027f2ac3
treee898c8634cc15ef57998c1c8546ba6edfa621c04
parent746e7d285dcb96caa1845fbbb62b14bf4010cdfb
arm64: insn: Add support for encoding DSB

commit 63de8abd97ddb9b758bd8f915ecbd18e1f1a87a0 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/insn.h
arch/arm64/lib/insn.c