xref: /linux/arch/mips/include/uapi/asm/break.h (revision 8e8dc33543504830e6444607ba856e60679995f1)
10bc1c157SRalf Baechle /*
20bc1c157SRalf Baechle  * This file is subject to the terms and conditions of the GNU General Public
30bc1c157SRalf Baechle  * License.  See the file "COPYING" in the main directory of this archive
40bc1c157SRalf Baechle  * for more details.
50bc1c157SRalf Baechle  *
60bc1c157SRalf Baechle  * Copyright (C) 1995, 2003 by Ralf Baechle
70bc1c157SRalf Baechle  * Copyright (C) 1999 Silicon Graphics, Inc.
80bc1c157SRalf Baechle  */
90bc1c157SRalf Baechle #ifndef __ASM_BREAK_H
100bc1c157SRalf Baechle #define __ASM_BREAK_H
110bc1c157SRalf Baechle 
120bc1c157SRalf Baechle /*
130bc1c157SRalf Baechle  * The following break codes are or were in use for specific purposes in
140bc1c157SRalf Baechle  * other MIPS operating systems.  Linux/MIPS doesn't use all of them.  The
150bc1c157SRalf Baechle  * unused ones are here as placeholders; we might encounter them in
160bc1c157SRalf Baechle  * non-Linux/MIPS object files or make use of them in the future.
170bc1c157SRalf Baechle  */
180bc1c157SRalf Baechle #define BRK_USERBP	0	/* User bp (used by debuggers) */
190bc1c157SRalf Baechle #define BRK_KERNELBP	1	/* Break in the kernel */
200bc1c157SRalf Baechle #define BRK_ABORT	2	/* Sometimes used by abort(3) to SIGIOT */
210bc1c157SRalf Baechle #define BRK_BD_TAKEN	3	/* For bd slot emulation - not implemented */
220bc1c157SRalf Baechle #define BRK_BD_NOTTAKEN 4	/* For bd slot emulation - not implemented */
230bc1c157SRalf Baechle #define BRK_SSTEPBP	5	/* User bp (used by debuggers) */
240bc1c157SRalf Baechle #define BRK_OVERFLOW	6	/* Overflow check */
250bc1c157SRalf Baechle #define BRK_DIVZERO	7	/* Divide by zero check */
260bc1c157SRalf Baechle #define BRK_RANGE	8	/* Range error check */
270bc1c157SRalf Baechle #define BRK_STACKOVERFLOW 9	/* For Ada stackchecking */
280bc1c157SRalf Baechle #define BRK_NORLD	10	/* No rld found - not used by Linux/MIPS */
290bc1c157SRalf Baechle #define _BRK_THREADBP	11	/* For threads, user bp (used by debuggers) */
30*8e8dc335SSteven J. Hill #define BRK_BUG		12	/* Used by BUG() */
310bc1c157SRalf Baechle #define BRK_KDB		513	/* Used in KDB_ENTER() */
320bc1c157SRalf Baechle #define BRK_MEMU	514	/* Used by FPU emulator */
330bc1c157SRalf Baechle #define BRK_KPROBE_BP	515	/* Kprobe break */
340bc1c157SRalf Baechle #define BRK_KPROBE_SSTEPBP 516	/* Kprobe single step software implementation */
350bc1c157SRalf Baechle #define BRK_MULOVF	1023	/* Multiply overflow */
360bc1c157SRalf Baechle 
370bc1c157SRalf Baechle #endif /* __ASM_BREAK_H */
38