ureg.h 813 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. typedef struct Ureg {
  10. uint32_t r0;
  11. uint32_t r1;
  12. uint32_t r2;
  13. uint32_t r3;
  14. uint32_t r4;
  15. uint32_t r5;
  16. uint32_t r6;
  17. uint32_t r7;
  18. uint32_t r8;
  19. uint32_t r9;
  20. uint32_t r10;
  21. uint32_t r11;
  22. uint32_t r12; /* sb */
  23. union {
  24. uint32_t r13;
  25. uint32_t sp;
  26. };
  27. union {
  28. uint32_t r14;
  29. uint32_t link;
  30. };
  31. uint32_t type; /* of exception */
  32. uint32_t psr;
  33. uint32_t pc; /* interrupted addr */
  34. } Ureg;