162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci#ifndef _ASMAXP_GENTRAP_H
362306a36Sopenharmony_ci#define _ASMAXP_GENTRAP_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci/*
662306a36Sopenharmony_ci * Definitions for gentrap causes.  They are generated by user-level
762306a36Sopenharmony_ci * programs and therefore should be compatible with the corresponding
862306a36Sopenharmony_ci * OSF/1 definitions.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci#define GEN_INTOVF	-1	/* integer overflow */
1162306a36Sopenharmony_ci#define GEN_INTDIV	-2	/* integer division by zero */
1262306a36Sopenharmony_ci#define GEN_FLTOVF	-3	/* fp overflow */
1362306a36Sopenharmony_ci#define GEN_FLTDIV	-4	/* fp division by zero */
1462306a36Sopenharmony_ci#define GEN_FLTUND	-5	/* fp underflow */
1562306a36Sopenharmony_ci#define GEN_FLTINV	-6	/* invalid fp operand */
1662306a36Sopenharmony_ci#define GEN_FLTINE	-7	/* inexact fp operand */
1762306a36Sopenharmony_ci#define GEN_DECOVF	-8	/* decimal overflow (for COBOL??) */
1862306a36Sopenharmony_ci#define GEN_DECDIV	-9	/* decimal division by zero */
1962306a36Sopenharmony_ci#define GEN_DECINV	-10	/* invalid decimal operand */
2062306a36Sopenharmony_ci#define GEN_ROPRAND	-11	/* reserved operand */
2162306a36Sopenharmony_ci#define GEN_ASSERTERR	-12	/* assertion error */
2262306a36Sopenharmony_ci#define GEN_NULPTRERR	-13	/* null pointer error */
2362306a36Sopenharmony_ci#define GEN_STKOVF	-14	/* stack overflow */
2462306a36Sopenharmony_ci#define GEN_STRLENERR	-15	/* string length error */
2562306a36Sopenharmony_ci#define GEN_SUBSTRERR	-16	/* substring error */
2662306a36Sopenharmony_ci#define GEN_RANGERR	-17	/* range error */
2762306a36Sopenharmony_ci#define GEN_SUBRNG	-18
2862306a36Sopenharmony_ci#define GEN_SUBRNG1	-19
2962306a36Sopenharmony_ci#define GEN_SUBRNG2	-20
3062306a36Sopenharmony_ci#define GEN_SUBRNG3	-21	/* these report range errors for */
3162306a36Sopenharmony_ci#define GEN_SUBRNG4	-22	/* subscripting (indexing) at levels 0..7 */
3262306a36Sopenharmony_ci#define GEN_SUBRNG5	-23
3362306a36Sopenharmony_ci#define GEN_SUBRNG6	-24
3462306a36Sopenharmony_ci#define GEN_SUBRNG7	-25
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci/* the remaining codes (-26..-1023) are reserved. */
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci#endif /* _ASMAXP_GENTRAP_H */
39