sig_cpu.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {$IFDEF FPC}
  2. {$PACKRECORDS C}
  3. {$ENDIF}
  4. { ESR bits (exception syndrome) values relevant to FPU exceptions }
  5. const
  6. __ESR_EC_Mask = cuint32($3f) shl 26;
  7. __ESR_EC_TrappedAArch64_FloatingPoint = cuint32(%101100) shl 26;
  8. __ESR_ISS_TFV = cuint32(1) shl 23;
  9. type
  10. __darwin_arm_exception_state64 = record
  11. __far : cuint64;
  12. __esr : cuint32;
  13. __exception : cuint32;
  14. end;
  15. __darwin_arm_thread_state64 = record
  16. __r : array[0..28] of cuint64;
  17. __fp : cuint64;
  18. __lr : cuint64;
  19. __sp : cuint64;
  20. __pc : cuint64;
  21. __cpsr : cuint32;
  22. __pad : cuint32;
  23. end;
  24. __darwin_arm_neon_state64 = record
  25. { actually an array of cuint128 }
  26. __r : array[0..31] of record l1,l2: cuint64; end;
  27. __fpsr : cuint32;
  28. __fpcr : cuint32;
  29. { array of cuint128 is aligned/padded to multiple of 16 bytes }
  30. pad: cuint64;
  31. end {$IF FPC_FULLVERSION>=30301}align 16{$endif};
  32. __darwin_arm_debug_state64 = record
  33. __bvr : array[0..15] of cuint64;
  34. __bcr : array[0..15] of cuint64;
  35. __wvr : array[0..15] of cuint64;
  36. __wcr : array[0..15] of cuint64;
  37. __mdscr_el1: cuint64;
  38. end;
  39. mcontext_t = record
  40. __es : __darwin_arm_exception_state64;
  41. __ss : __darwin_arm_thread_state64;
  42. __ns : __darwin_arm_neon_state64;
  43. end;