ureg.h 741 B

123456789101112131415161718192021222324252627282930313233343536
  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;
  9. unsigned long r1;
  10. unsigned long r2;
  11. unsigned long r3;
  12. unsigned long r4;
  13. unsigned long r5;
  14. unsigned long r6;
  15. unsigned long r7;
  16. unsigned long a0;
  17. unsigned long a1;
  18. unsigned long a2;
  19. unsigned long a3;
  20. unsigned long a4;
  21. unsigned long a5;
  22. unsigned long a6;
  23. unsigned long sp;
  24. unsigned long usp;
  25. unsigned long magic; /* for db to find bottom of ureg */
  26. unsigned short sr;
  27. unsigned long pc;
  28. unsigned short vo;
  29. #ifndef UREGVARSZ
  30. #define UREGVARSZ 23 /* for 68040; 15 is enough on 68020 */
  31. #endif
  32. unsigned char microstate[UREGVARSZ]; /* variable-sized portion */
  33. };
  34. #endif