ureg.h 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. {
  8. unsigned long status;
  9. unsigned long pc;
  10. union{
  11. unsigned long sp; /* r29 */
  12. unsigned long usp; /* r29 */
  13. };
  14. unsigned long cause;
  15. unsigned long badvaddr;
  16. unsigned long tlbvirt;
  17. unsigned long hi;
  18. unsigned long lo;
  19. unsigned long r31;
  20. unsigned long r30;
  21. unsigned long r28;
  22. unsigned long r27; /* unused */
  23. unsigned long r26; /* unused */
  24. unsigned long r25;
  25. unsigned long r24;
  26. unsigned long r23;
  27. unsigned long r22;
  28. unsigned long r21;
  29. unsigned long r20;
  30. unsigned long r19;
  31. unsigned long r18;
  32. unsigned long r17;
  33. unsigned long r16;
  34. unsigned long r15;
  35. unsigned long r14;
  36. unsigned long r13;
  37. unsigned long r12;
  38. unsigned long r11;
  39. unsigned long r10;
  40. unsigned long r9;
  41. unsigned long r8;
  42. unsigned long r7;
  43. unsigned long r6;
  44. unsigned long r5;
  45. unsigned long r4;
  46. unsigned long r3;
  47. unsigned long r2;
  48. unsigned long r1;
  49. };
  50. #endif