xref: /openbmc/linux/arch/mips/include/uapi/asm/break.h (revision e2be04c7)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
20bc1c157SRalf Baechle /*
30bc1c157SRalf Baechle  * This file is subject to the terms and conditions of the GNU General Public
40bc1c157SRalf Baechle  * License.  See the file "COPYING" in the main directory of this archive
50bc1c157SRalf Baechle  * for more details.
60bc1c157SRalf Baechle  *
70bc1c157SRalf Baechle  * Copyright (C) 1995, 2003 by Ralf Baechle
80bc1c157SRalf Baechle  * Copyright (C) 1999 Silicon Graphics, Inc.
90bc1c157SRalf Baechle  */
10612663a9SDavid Daney #ifndef __UAPI_ASM_BREAK_H
11612663a9SDavid Daney #define __UAPI_ASM_BREAK_H
120bc1c157SRalf Baechle 
130bc1c157SRalf Baechle /*
140bc1c157SRalf Baechle  * The following break codes are or were in use for specific purposes in
150bc1c157SRalf Baechle  * other MIPS operating systems.  Linux/MIPS doesn't use all of them.  The
160bc1c157SRalf Baechle  * unused ones are here as placeholders; we might encounter them in
170bc1c157SRalf Baechle  * non-Linux/MIPS object files or make use of them in the future.
180bc1c157SRalf Baechle  */
190bc1c157SRalf Baechle #define BRK_USERBP	0	/* User bp (used by debuggers) */
200bc1c157SRalf Baechle #define BRK_SSTEPBP	5	/* User bp (used by debuggers) */
210bc1c157SRalf Baechle #define BRK_OVERFLOW	6	/* Overflow check */
220bc1c157SRalf Baechle #define BRK_DIVZERO	7	/* Divide by zero check */
230bc1c157SRalf Baechle #define BRK_RANGE	8	/* Range error check */
248e8dc335SSteven J. Hill #define BRK_BUG		12	/* Used by BUG() */
2540e084a5SRalf Baechle #define BRK_UPROBE	13	/* See <asm/uprobes.h> */
2640e084a5SRalf Baechle #define BRK_UPROBE_XOL	14	/* See <asm/uprobes.h> */
270bc1c157SRalf Baechle #define BRK_MEMU	514	/* Used by FPU emulator */
280bc1c157SRalf Baechle #define BRK_KPROBE_BP	515	/* Kprobe break */
290bc1c157SRalf Baechle #define BRK_KPROBE_SSTEPBP 516	/* Kprobe single step software implementation */
300bc1c157SRalf Baechle #define BRK_MULOVF	1023	/* Multiply overflow */
310bc1c157SRalf Baechle 
32612663a9SDavid Daney #endif /* __UAPI_ASM_BREAK_H */
33