sighndh.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Pierre Muller,
  4. member of the Free Pascal development team.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. type
  12. { REMARK: floating point regs are defined as arrays of
  13. 3 longints; I don't know if C does align this to
  14. 16 byte boundaries for each element of the array PM }
  15. { If C does we might need to define this as
  16. array from 0 to 3 }
  17. tfpreg = array[0..2] of longint;
  18. pfpstate = ^tfpstate;
  19. tfpstate = record
  20. pcr,psr,fpiaddr : longint;
  21. fpreg : array [0..7] of tfpreg;
  22. end;
  23. { as defined in asm_m68k/signal.h }
  24. Stack_T = Record
  25. ss_sp : pointer;
  26. ss_flags : longint;
  27. ss_size : size_t;
  28. end;
  29. { SigContextRec corresponds to the ucontext record
  30. in linux asm-m68k/ucontext.h include file }
  31. PSigContext = ^TSigContext;
  32. TSigContext = record
  33. uc_flags : cardinal;
  34. uc_link : pSigContext;
  35. uc_stack : stack_t; { what's that ?? }
  36. { fields from 'version' to 'pc'
  37. correspond to the mcontext struct in asm-m68k/ucontext.h file }
  38. version : longint; { SigContext version check }
  39. { 18 general registers }
  40. d0,d1,d2,d3,d4,d5,d6,d7 : cardinal;
  41. a0,a1,a2,a3,a4,a5 : cardinal;
  42. fp,sp,ps,pc : cardinal;
  43. { fields from 'pcr' to 'fpreg'
  44. are floating point part }
  45. pcr,psr,fpiaddr : longint;
  46. fpreg : array[0..7] of tfpreg; { how is this aligned ?? }
  47. filler : array[0..79] of cardinal;
  48. sigmask : TSigSet;
  49. end;