context.inc 893 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {$IFDEF OGC_INTERFACE}
  2. const
  3. NUM_EXCEPTIONS = 15;
  4. EX_SYS_RESET = 0;
  5. EX_MACH_CHECK = 1;
  6. EX_DSI = 2;
  7. EX_ISI = 3;
  8. EX_INT = 4;
  9. EX_ALIGN = 5;
  10. EX_PRG = 6;
  11. EX_FP = 7;
  12. EX_DEC = 8;
  13. EX_SYS_CALL = 9;
  14. EX_TRACE = 10;
  15. EX_PERF = 11;
  16. EX_IABR = 12;
  17. EX_RESV = 13;
  18. EX_THERM = 14;
  19. {$ifndef _LANGUAGE_ASSEMBLY}
  20. type
  21. _excption_frame = record
  22. EXCPT_Number : cuint32;
  23. SRR0 : cuint32;
  24. SRR1 : cuint32;
  25. GPR : array [0..31] of cuint32;
  26. GQR : array [0..7] of cuint32;
  27. CR : cuint32;
  28. LR : cuint32;
  29. CTR : cuint32;
  30. XER : cuint32;
  31. MSR : cuint32;
  32. DAR : cuint32;
  33. state : cuint16; //used to determine whether to restore the fpu context or not
  34. mode : cuint16; //unused
  35. FPR : array [0..31] of f64;
  36. FPSCR : cuint64;
  37. PSFPR : array [0..31] of f64;
  38. end;
  39. frame_context = _excption_frame;
  40. {$endif _LANGUAGE_ASSEMBLY}
  41. {$ENDIF}