ureg.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef __UREG_H
  2. #define __UREG_H
  3. #if !defined(_PLAN9_SOURCE)
  4. This header file is an extension to ANSI/POSIX
  5. #endif
  6. struct Ureg
  7. { unsigned long cause;
  8. union { unsigned long srr1; unsigned long status;};
  9. unsigned long pc; /* SRR0 */
  10. unsigned long pad;
  11. unsigned long lr;
  12. unsigned long cr;
  13. unsigned long xer;
  14. unsigned long ctr;
  15. unsigned long r0;
  16. union{ unsigned long r1; unsigned long sp; unsigned long usp; };
  17. unsigned long r2;
  18. unsigned long r3;
  19. unsigned long r4;
  20. unsigned long r5;
  21. unsigned long r6;
  22. unsigned long r7;
  23. unsigned long r8;
  24. unsigned long r9;
  25. unsigned long r10;
  26. unsigned long r11;
  27. unsigned long r12;
  28. unsigned long r13;
  29. unsigned long r14;
  30. unsigned long r15;
  31. unsigned long r16;
  32. unsigned long r17;
  33. unsigned long r18;
  34. unsigned long r19;
  35. unsigned long r20;
  36. unsigned long r21;
  37. unsigned long r22;
  38. unsigned long r23;
  39. unsigned long r24;
  40. unsigned long r25;
  41. unsigned long r26;
  42. unsigned long r27;
  43. unsigned long r28;
  44. unsigned long r29;
  45. unsigned long r30;
  46. unsigned long r31;
  47. };
  48. #endif