sighndh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Jonas Maebe,
  4. member of the Free Pascal development team.
  5. TSigContext
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$packrecords C}
  13. const
  14. __SUNOS_MAXWIN = 31;
  15. SIG_G0 = 0;
  16. SIG_G1 = 1;
  17. SIG_G2 = 2;
  18. SIG_G3 = 3;
  19. SIG_G4 = 4;
  20. SIG_G5 = 5;
  21. SIG_G6 = 6;
  22. SIG_G7 = 7;
  23. SIG_O0 = 8;
  24. SIG_O1 = 9;
  25. SIG_O2 = 10;
  26. SIG_O3 = 11;
  27. SIG_O4 = 12;
  28. SIG_O5 = 13;
  29. SIG_O6 = 14;
  30. SIG_O7 = 15;
  31. { l and i registers do not seem to be
  32. written in sigcontext struct
  33. SIG_L0 = 16;
  34. SIG_L1 = 17;
  35. SIG_L2 = 18;
  36. SIG_L3 = 19;
  37. SIG_L4 = 20;
  38. SIG_L5 = 21;
  39. SIG_L6 = 22;
  40. SIG_L7 = 23;
  41. SIG_I0 = 24;
  42. SIG_I1 = 25;
  43. SIG_I2 = 26;
  44. SIG_I3 = 27;
  45. SIG_I4 = 28;
  46. SIG_I5 = 29;
  47. SIG_I6 = 30;
  48. SIG_I7 = 31; }
  49. SIG_SP = SIG_O6;
  50. { SIG_FP = SIG_I6; }
  51. type
  52. twbuf = record
  53. locals : array[0..7] of longint;
  54. ins : array[0..7] of longint;
  55. end;
  56. PSigContext = ^TSigContext;
  57. TSigContext = record
  58. // sigc_onstack, { state to restore }
  59. // sigc_mask, { sigmask to restore }
  60. // sigc_sp, { stack pointer }
  61. sigc_psr, { for condition codes etc }
  62. sigc_pc, { program counter }
  63. sigc_npc, { next program counter }
  64. sigc_y : clong;
  65. sigc_gregs : array [0..31] of clong;
  66. end;