home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / trap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  1.5 KB  |  53 lines

  1. /*
  2.  *    @(#) trap.h 2.1 88/05/18 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987.
  5.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /*
  12.  * 386 trap types
  13.  */
  14. #define TR_DIVERR    0    /* divide error */
  15. #define TR_SINGLE    1    /* single step */
  16. #define TR_NMI        2    /* non-maskable interrupt */
  17. #define TR_BRKPNT    3    /* breakpoint */
  18. #define TR_INTO        4    /* INTO instruction */
  19. #define TR_BOUND    5    /* BOUND instruction */
  20. #define TR_ILLINST    6    /* illegal instruction */
  21. #define TR_DNA        7    /* device not available */
  22. #define TR_DBLFLT    8    /* double fault */
  23. #define TR_OVERRUN    9    /* coprocessor overrun */
  24. #define TR_INVTSS    10    /* invalid tss */
  25. #define TR_SEGNP    11    /* segment not present */
  26. #define TR_STACK    12    /* stack fault */
  27. #define TR_GP        13    /* general protection fault */
  28. #define TR_PAGE        14    /* page fault */
  29. #define TR_COPROC    16    /* coprocessor error */
  30. #define RESCHED        17    /* software generated */
  31. #define SYSCALL        18    /* software generated */
  32. #define USER        512
  33.  
  34. /*
  35.  * floating point traps
  36.  */
  37. #define TR_SW240    240
  38. #define TR_SW241    241
  39. #define TR_SW242    242
  40. #define TR_SW243    243
  41. #define TR_SW244    244
  42. #define TR_SW245    245
  43. #define TR_SW246    246
  44. #define TR_SW247    247
  45. #define TR_SW248    248
  46. #define TR_SW249    249
  47. #define TR_SW250    250
  48. #define TR_SW251    251
  49. #define TR_SW252    252
  50. #define TR_SW253    253
  51. #define TR_SW254    254
  52. #define TR_SW255    255
  53.