Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 
0003 #ifndef __ASM_INSN_DEF_H
0004 #define __ASM_INSN_DEF_H
0005 
0006 #include <asm/brk-imm.h>
0007 
0008 /* A64 instructions are always 32 bits. */
0009 #define AARCH64_INSN_SIZE       4
0010 
0011 /*
0012  * BRK instruction encoding
0013  * The #imm16 value should be placed at bits[20:5] within BRK ins
0014  */
0015 #define AARCH64_BREAK_MON   0xd4200000
0016 
0017 /*
0018  * BRK instruction for provoking a fault on purpose
0019  * Unlike kgdb, #imm16 value with unallocated handler is used for faulting.
0020  */
0021 #define AARCH64_BREAK_FAULT (AARCH64_BREAK_MON | (FAULT_BRK_IMM << 5))
0022 
0023 #endif /* __ASM_INSN_DEF_H */