xref: /OK3568_Linux_fs/kernel/arch/mips/include/uapi/asm/break.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
4*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
5*4882a593Smuzhiyun  * for more details.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright (C) 1995, 2003 by Ralf Baechle
8*4882a593Smuzhiyun  * Copyright (C) 1999 Silicon Graphics, Inc.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #ifndef __UAPI_ASM_BREAK_H
11*4882a593Smuzhiyun #define __UAPI_ASM_BREAK_H
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /*
14*4882a593Smuzhiyun  * The following break codes are or were in use for specific purposes in
15*4882a593Smuzhiyun  * other MIPS operating systems.  Linux/MIPS doesn't use all of them.  The
16*4882a593Smuzhiyun  * unused ones are here as placeholders; we might encounter them in
17*4882a593Smuzhiyun  * non-Linux/MIPS object files or make use of them in the future.
18*4882a593Smuzhiyun  */
19*4882a593Smuzhiyun #define BRK_USERBP	0	/* User bp (used by debuggers) */
20*4882a593Smuzhiyun #define BRK_SSTEPBP	5	/* User bp (used by debuggers) */
21*4882a593Smuzhiyun #define BRK_OVERFLOW	6	/* Overflow check */
22*4882a593Smuzhiyun #define BRK_DIVZERO	7	/* Divide by zero check */
23*4882a593Smuzhiyun #define BRK_RANGE	8	/* Range error check */
24*4882a593Smuzhiyun #define BRK_BUG		12	/* Used by BUG() */
25*4882a593Smuzhiyun #define BRK_UPROBE	13	/* See <asm/uprobes.h> */
26*4882a593Smuzhiyun #define BRK_UPROBE_XOL	14	/* See <asm/uprobes.h> */
27*4882a593Smuzhiyun #define BRK_MEMU	514	/* Used by FPU emulator */
28*4882a593Smuzhiyun #define BRK_KPROBE_BP	515	/* Kprobe break */
29*4882a593Smuzhiyun #define BRK_KPROBE_SSTEPBP 516	/* Kprobe single step software implementation */
30*4882a593Smuzhiyun #define BRK_MULOVF	1023	/* Multiply overflow */
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif /* __UAPI_ASM_BREAK_H */
33