arm64: insn: Add support for encoding DSB

commit 63de8abd97 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>
This commit is contained in:
James Morse 2021-12-09 15:12:19 +00:00 • committed by Greg Kroah-Hartman
commit cc0b8e148c
2 changed files with 38 additions and 23 deletions