| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| #include <linux/notifier.h> |
| * We want this to be defined as union mips_instruction but that makes the |
| typedef u32 uprobe_opcode_t; |
| * Classic MIPS (note this implementation doesn't consider microMIPS yet) |
| * instructions are always 4 bytes but in order to deal with branches and |
| * their delay slots, we treat instructions as having 8 bytes maximum. |
| #define MAX_UINSN_BYTES 8 |
| #define UPROBE_XOL_SLOT_BYTES 128 /* Max. cache line size */ |
| #define UPROBE_BRK_UPROBE 0x000d000d /* break 13 */ |
| #define UPROBE_BRK_UPROBE_XOL 0x000e000d /* break 14 */ |
| #define UPROBE_SWBP_INSN UPROBE_BRK_UPROBE |
| #define UPROBE_SWBP_INSN_SIZE 4 |
| unsigned long resume_epc; |
| struct arch_uprobe_task { |
| unsigned long saved_trap_nr; |
| #endif /* __ASM_UPROBES_H */ |