insn-def.h 571 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __ASM_INSN_DEF_H
  3. #define __ASM_INSN_DEF_H
  4. #include <asm/brk-imm.h>
  5. /* A64 instructions are always 32 bits. */
  6. #define AARCH64_INSN_SIZE 4
  7. /*
  8. * BRK instruction encoding
  9. * The #imm16 value should be placed at bits[20:5] within BRK ins
  10. */
  11. #define AARCH64_BREAK_MON 0xd4200000
  12. /*
  13. * BRK instruction for provoking a fault on purpose
  14. * Unlike kgdb, #imm16 value with unallocated handler is used for faulting.
  15. */
  16. #define AARCH64_BREAK_FAULT (AARCH64_BREAK_MON | (FAULT_BRK_IMM << 5))
  17. #endif /* __ASM_INSN_DEF_H */