ureg.h 883 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. unsigned long long ax;
  8. unsigned long long bx;
  9. unsigned long long cx;
  10. unsigned long long dx;
  11. unsigned long long si;
  12. unsigned long long di;
  13. unsigned long long bp;
  14. unsigned long long r8;
  15. unsigned long long r9;
  16. unsigned long long r10;
  17. unsigned long long r11;
  18. unsigned long long r12;
  19. unsigned long long r13;
  20. unsigned long long r14;
  21. unsigned long long r15;
  22. unsigned short ds;
  23. unsigned short es;
  24. unsigned short fs;
  25. unsigned short gs;
  26. unsigned long long type;
  27. unsigned long long error; /* error code (or zero) */
  28. unsigned long long ip; /* pc */
  29. unsigned long long cs; /* old context */
  30. unsigned long long flags; /* old flags */
  31. unsigned long long sp; /* sp */
  32. unsigned long long ss; /* old stack segment */
  33. };
  34. #endif