]> 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:21:25 +0000 (08:21 +0200)
commitcc0b8e148c334c4e8ea60446dfd78b72f7a70d70
treecebf9c9b89a0be46865a55d55346b069f577cf0a
parent361dfa7f5c94bdaa51b637b2784d01d70a35bfaf
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