home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / bsd / hppa / signal.h < prev    next >
C/C++ Source or Header  |  1997-04-27  |  2KB  |  50 lines

  1. /*
  2.  * Copyright (c) 1993 NeXT Computer, Inc.
  3.  *
  4.  * HISTORY
  5.  *
  6.  * 23 Aug 93 Mac Gillon at NeXT
  7.  *    Created from HP version
  8.  */
  9.  
  10. #ifndef    _HPPA_SIGNAL_
  11. #define    _HPPA_SIGNAL_ 1
  12.  
  13. #ifndef __ASSEMBLER__
  14.  
  15. /*
  16.  * Information pushed on stack when a signal is delivered.
  17.  * This is used by the kernel to restore state following
  18.  * execution of the signal handler.  It is also made available
  19.  * to the handler to allow it to properly restore state if
  20.  * a non-standard exit is performed.
  21.  */
  22. struct  sigcontext {
  23.     int        sc_onstack;     /* sigstack state to restore */
  24.     int        sc_mask;        /* signal mask to restore */
  25.     int        sc_pcsq[2];        /* pc space queue */
  26.     int        sc_pcoq[2];        /* pc offset queue */
  27.     int        sc_psw;         /* processor status word */
  28.     int        sc_sp;          /* stack pointer if sc_regs == NULL */
  29.     void    *sc_regs;        /* (kernel private) saved state */
  30. };
  31. #endif  /* __ASSEMBLER__ */
  32.  
  33. #define ILL_RESAD_FAULT        0x0     /* reserved addressing fault */
  34. #define ILL_PRIVIN_FAULT    0x1     /* privileged instruction fault */
  35. #define ILL_RESOP_FAULT         0x2     /* reserved operand fault */
  36. #define    ILL_PRIVREG_FAULT    0x4    /* privileged register fault */
  37. #define BUS_UNALIGNED_FAILED    0x1    /* os assist of unaligned ref failed */
  38. #define BUS_UNALIGNED_SUCCEEDED    0x2    /* os assist of unaligned ref success*/
  39. #define    FPE_OVERFLOW        0x1    /* overflow trap */
  40. #define    FPE_CONDITION        0x2    /* conditional trap  */
  41. #define FPE_ASSIST_FAILED    0x3    /* os assist of instruction failed */
  42. #define FPE_ASSIST_SUCCEEDED    0x4    /* os assist of instruction success */
  43. #define    FPE_EMULATION_FAILED    0x5    /* os emulation of instruction fail */
  44. #define    FPE_EMULATION_SUCCEEDED    0x6    /* os emulation of instruction succes*/
  45.  
  46. #define SIGCATCHALL 0x400
  47.  
  48. #endif /* _HPPA_SIGNAL_ */
  49.  
  50.