sighndh.inc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Jonas Maebe,
  5. member of the Free Pascal development team.
  6. TSigcontext
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. {$packrecords C}
  14. type
  15. Pfpstate = ^Tfpstate;
  16. Tfpstate = record
  17. cwd,
  18. swd,
  19. twd, // Note this is not the same as the 32bit/x87/FSAVE twd
  20. fop : word;
  21. rip,
  22. rdp : qword;
  23. mxcsr,
  24. mxcsr_mask : dword;
  25. st_space : array[0..31] of dword; // 8*16 bytes for each FP-reg
  26. xmm_space : array[0..63] of dword; // 16*16 bytes for each XMM-reg
  27. reserved2 : array[0..23] of dword;
  28. end;
  29. PSigContext = ^TSigContext;
  30. TSigContext = record
  31. __pad00 : array[0..4] of qword;
  32. r8,
  33. r9,
  34. r10,
  35. r11,
  36. r12,
  37. r13,
  38. r14,
  39. r15,
  40. rdi,
  41. rsi,
  42. rbp,
  43. rbx,
  44. rdx,
  45. rax,
  46. rcx,
  47. rsp,
  48. rip,
  49. eflags : qword;
  50. cs,
  51. gs,
  52. fs,
  53. __pad0 : word;
  54. err,
  55. trapno,
  56. oldmask,
  57. cr2 : qword;
  58. fpstate : Pfpstate; // zero when no FPU context */
  59. reserved1 : array[0..7] of qword;
  60. end;
  61. {
  62. $Log$
  63. Revision 1.1 2005-01-30 18:01:15 peter
  64. * signal cleanup for linux
  65. * sigactionhandler instead of tsigaction for bsds
  66. * sigcontext moved to cpu dir
  67. }