home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / trap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.7 KB  |  49 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_TRAP_H
  11. #define _SYS_TRAP_H
  12.  
  13. #ident    "@(#)/usr/include/sys/trap.h.sl 1.1 4.0 12/08/90 9510 AT&T-USL"
  14.  
  15. /*
  16.  * Trap type values
  17.  */
  18.  
  19. #define    DIVERR        0    /* divide by 0 error        */
  20. #define    SGLSTP        1    /* single step            */
  21. #define    NMIFLT        2    /* NMI                */
  22. #define    BPTFLT        3    /* breakpoint fault        */
  23. #define    INTOFLT        4    /* INTO overflow fault        */
  24. #define    BOUNDFLT    5    /* BOUND instruction fault    */
  25. #define    INVOPFLT    6    /* invalid opcode fault        */
  26. #define    NOEXTFLT    7    /* extension not available fault*/
  27. #define    DBLFLT        8    /* double fault            */
  28. #define    EXTOVRFLT    9    /* extension overrun fault    */
  29. #define    INVTSSFLT    10    /* invalid TSS fault        */
  30. #define    SEGNPFLT    11    /* segment not present fault    */
  31. #define    STKFLT        12    /* stack fault            */
  32. #define    GPFLT        13    /* general protection fault    */
  33. #define    PGFLT        14    /* page fault            */
  34. #define    EXTERRFLT    16    /* extension error fault    */
  35. #define    ENDPERR        33    /* emulated extension error flt    */
  36. #define    ENOEXTFLT    32    /* emulated ext not present    */
  37.  
  38. /*
  39.  *  Values of error code on stack in case of page fault 
  40.  */
  41.  
  42. #define    PF_ERR_MASK    0x01    /* Mask for error bit */
  43. #define PF_ERR_PAGE    0    /* page not present */
  44. #define PF_ERR_PROT    1    /* protection error */
  45. #define PF_ERR_WRITE    2    /* fault caused by write (else read) */
  46. #define PF_ERR_USER    4    /* processor was in user mode
  47.                     (else supervisor) */
  48. #endif    /* _SYS_TRAP_H */
  49.