xref: /linux/arch/loongarch/include/uapi/asm/break.h (revision 5e0266f0e5f57617472d5aac4013f58a3ef264ac)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4  */
5 #ifndef __UAPI_ASM_BREAK_H
6 #define __UAPI_ASM_BREAK_H
7 
8 #define BRK_DEFAULT		0	/* Used as default */
9 #define BRK_BUG			1	/* Used by BUG() */
10 #define BRK_KDB			2	/* Used in KDB_ENTER() */
11 #define BRK_MATHEMU		3	/* Used by FPU emulator */
12 #define BRK_USERBP		4	/* User bp (used by debuggers) */
13 #define BRK_SSTEPBP		5	/* User bp (used by debuggers) */
14 #define BRK_OVERFLOW		6	/* Overflow check */
15 #define BRK_DIVZERO		7	/* Divide by zero check */
16 #define BRK_RANGE		8	/* Range error check */
17 #define BRK_MULOVFL		9	/* Multiply overflow */
18 #define BRK_KPROBE_BP		10	/* Kprobe break */
19 #define BRK_KPROBE_SSTEPBP	11	/* Kprobe single step break */
20 #define BRK_UPROBE_BP		12	/* See <asm/uprobes.h> */
21 #define BRK_UPROBE_XOLBP	13	/* See <asm/uprobes.h> */
22 
23 #endif /* __UAPI_ASM_BREAK_H */
24