ureg.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef __UREG_H
  10. #define __UREG_H
  11. #if !defined(_PLAN9_SOURCE)
  12. This header file is an extension to ANSI/POSIX
  13. #endif
  14. struct Ureg
  15. {
  16. unsigned long r0;
  17. unsigned long r1;
  18. unsigned long r2;
  19. unsigned long r3;
  20. unsigned long r4;
  21. unsigned long r5;
  22. unsigned long r6;
  23. unsigned long r7;
  24. unsigned long r8;
  25. unsigned long r9;
  26. unsigned long r10;
  27. unsigned long r11;
  28. unsigned long r12; /* sb */
  29. union {
  30. unsigned long r13;
  31. unsigned long sp;
  32. };
  33. union {
  34. unsigned long r14;
  35. unsigned long link;
  36. };
  37. unsigned long type; /* of exception */
  38. unsigned long psr;
  39. unsigned long pc; /* interrupted addr */
  40. };
  41. #endif