sighndh.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 and associated structures.
  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. type
  14. TAarch64_ctx = record
  15. magic,
  16. size : DWord
  17. end;
  18. TFPSIMD_Context = record
  19. head : TAarch64_ctx;
  20. fpsr,
  21. fpcr : DWord;
  22. vregs : array[0..31] of array[0..7] of Byte;
  23. end;
  24. PSigContext = ^TSigContext;
  25. TSigContext = record
  26. fault_address : cULong;
  27. regs : array[0..30] of cULong;
  28. sp : cULong;
  29. pc : cULong;
  30. pstate : cULong;
  31. __pad : cULong;
  32. { The following fields should be 16-byte-aligned. Currently the
  33. directive for specifying alignment is buggy, so the preceding
  34. field was added so that the record has the right size. }
  35. case Byte of
  36. 1: (__reserved : array[0..4095] of cUChar);
  37. 2: (FPSIMD_Context : TFPSIMD_Context);
  38. end;
  39. stack_t = record
  40. ss_sp : pointer;
  41. ss_flags : cInt;
  42. ss_size : size_t;
  43. end;
  44. PUContext = ^TUContext;
  45. TUContext = record
  46. uc_flags : cULong;
  47. uc_link : PUContext;
  48. uc_stack : stack_t;
  49. uc_sigmask : sigset_t;
  50. __padding : array[1..128 - sizeof(sigset_t)] of byte;
  51. __pad : cULong;
  52. { The following field should be 16-byte-aligned. Currently the
  53. directive for specifying alignment is buggy, so the preceding
  54. field was added so that the record has the right size. }
  55. uc_mcontext : TSigContext;
  56. end;