home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / exception.h < prev    next >
Text File  |  1992-07-29  |  1KB  |  46 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7.  
  8. /*
  9.  * HISTORY
  10.  * 29-Sep-87  David Black (dlb) at Carnegie-Mellon University
  11.  *    Created.
  12.  */
  13.  
  14. #ifndef    EXCEPTION_H_
  15. #define    EXCEPTION_H_
  16.  
  17. #import <mach/machine/exception.h>
  18.  
  19. /*
  20.  *    Machine-independent exception definitions.
  21.  */
  22.  
  23. #define EXC_BAD_ACCESS        1    /* Could not access memory */
  24.         /* Code contains kern_return_t describing error. */
  25.         /* Subcode contains bad memory address. */
  26.  
  27. #define EXC_BAD_INSTRUCTION    2    /* Instruction failed */
  28.         /* Illegal or undefined instruction or operand */
  29.  
  30. #define EXC_ARITHMETIC        3    /* Arithmetic exception */
  31.         /* Exact nature of exception is in code field */
  32.  
  33. #define EXC_EMULATION        4    /* Emulation instruction */
  34.         /* Emulation support instruction encountered */
  35.         /* Details in code and subcode fields    */
  36.  
  37. #define EXC_SOFTWARE        5    /* Software generated exception */
  38.         /* Exact exception is in code field. */
  39.         /* Codes 0 - 0xFFFF reserved to hardware */
  40.         /* Codes 0x10000 - 0x1FFFF reserved for OS emulation (Unix) */
  41.  
  42. #define EXC_BREAKPOINT        6    /* Trace, breakpoint, etc. */
  43.         /* Details in code field. */
  44.  
  45. #endif    EXCEPTION_H_
  46.