sighndh.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. type
  14. Pfpstate = ^Tfpstate;
  15. Tfpstate = record
  16. cwd,
  17. swd,
  18. twd, // Note this is not the same as the 32bit/x87/FSAVE twd
  19. fop : word;
  20. rip,
  21. rdp : qword;
  22. mxcsr,
  23. mxcsr_mask : dword;
  24. st_space : array[0..31] of dword; // 8*16 bytes for each FP-reg
  25. xmm_space : array[0..63] of dword; // 16*16 bytes for each XMM-reg
  26. reserved2 : array[0..23] of dword;
  27. end;
  28. PSigContext = ^TSigContext;
  29. TSigContext = record
  30. __pad00 : array[0..4] of qword;
  31. r8,
  32. r9,
  33. r10,
  34. r11,
  35. r12,
  36. r13,
  37. r14,
  38. r15,
  39. rdi,
  40. rsi,
  41. rbp,
  42. rbx,
  43. rdx,
  44. rax,
  45. rcx,
  46. rsp,
  47. rip,
  48. eflags : qword;
  49. cs,
  50. gs,
  51. fs,
  52. __pad0 : word;
  53. err,
  54. trapno,
  55. oldmask,
  56. cr2 : qword;
  57. fpstate : Pfpstate; // zero when no FPU context */
  58. reserved1 : array[0..7] of qword;
  59. end;