home *** CD-ROM | disk | FTP | other *** search
- /*
- * Mach Operating System
- * Copyright (c) 1987 Carnegie-Mellon University
- * All rights reserved. The CMU software License Agreement specifies
- * the terms and conditions for use and redistribution.
- */
-
- /*
- * HISTORY
- * 29-Sep-87 David Black (dlb) at Carnegie-Mellon University
- * Created.
- */
-
- #ifndef EXCEPTION_H_
- #define EXCEPTION_H_
-
- #import <mach/machine/exception.h>
-
- /*
- * Machine-independent exception definitions.
- */
-
- #define EXC_BAD_ACCESS 1 /* Could not access memory */
- /* Code contains kern_return_t describing error. */
- /* Subcode contains bad memory address. */
-
- #define EXC_BAD_INSTRUCTION 2 /* Instruction failed */
- /* Illegal or undefined instruction or operand */
-
- #define EXC_ARITHMETIC 3 /* Arithmetic exception */
- /* Exact nature of exception is in code field */
-
- #define EXC_EMULATION 4 /* Emulation instruction */
- /* Emulation support instruction encountered */
- /* Details in code and subcode fields */
-
- #define EXC_SOFTWARE 5 /* Software generated exception */
- /* Exact exception is in code field. */
- /* Codes 0 - 0xFFFF reserved to hardware */
- /* Codes 0x10000 - 0x1FFFF reserved for OS emulation (Unix) */
-
- #define EXC_BREAKPOINT 6 /* Trace, breakpoint, etc. */
- /* Details in code field. */
-
- #endif EXCEPTION_H_
-