ureg.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 r0; /* unnecessary; just for symmetry */
  9. union{
  10. unsigned long sp; /* r1 */
  11. unsigned long usp; /* r1 */
  12. unsigned long r1;
  13. };
  14. unsigned long r2;
  15. unsigned long r3;
  16. unsigned long r4;
  17. unsigned long r5;
  18. unsigned long r6;
  19. unsigned long r7;
  20. unsigned long r8;
  21. unsigned long r9;
  22. unsigned long r10;
  23. unsigned long r11;
  24. unsigned long r12;
  25. unsigned long r13;
  26. unsigned long r14;
  27. unsigned long r15;
  28. unsigned long r16;
  29. unsigned long r17;
  30. unsigned long r18;
  31. unsigned long r19;
  32. unsigned long r20;
  33. unsigned long r21;
  34. unsigned long r22;
  35. unsigned long r23;
  36. unsigned long r24;
  37. unsigned long r25;
  38. unsigned long r26;
  39. unsigned long r27;
  40. unsigned long r28;
  41. unsigned long r29;
  42. unsigned long r30;
  43. unsigned long r31;
  44. unsigned long y;
  45. unsigned long tbr;
  46. unsigned long psr;
  47. unsigned long npc;
  48. unsigned long pc;
  49. unsigned long pad; /* so structure is double word aligned */
  50. };
  51. #endif