Skip to content

Commit 2bbbb40

Browse files
mrutland-armctmarinas
authored andcommitted
arm64: insn: Add helpers for BTI
In subsequent patches we'd like to check whether an instruction is a BTI. In preparation for this, add basic instruction helpers for BTI instructions. Per ARM DDI 0487H.a section C6.2.41, BTI is encoded in binary as follows, MSB to LSB: 1101 0101 000 0011 0010 0100 xx01 1111 Where the `xx` bits encode J/C/JC: 00 : (omitted) 01 : C 10 : J 11 : JC Signed-off-by: Mark Rutland <[email protected]> Cc: Florent Revest <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 47a15aa commit 2bbbb40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/include/asm/insn.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ __AARCH64_INSN_FUNCS(sb, 0xFFFFFFFF, 0xD50330FF)
420420
__AARCH64_INSN_FUNCS(clrex, 0xFFFFF0FF, 0xD503305F)
421421
__AARCH64_INSN_FUNCS(ssbb, 0xFFFFFFFF, 0xD503309F)
422422
__AARCH64_INSN_FUNCS(pssbb, 0xFFFFFFFF, 0xD503349F)
423+
__AARCH64_INSN_FUNCS(bti, 0xFFFFFF3F, 0xD503241f)
423424

424425
#undef __AARCH64_INSN_FUNCS
425426

0 commit comments

Comments
 (0)