1
0

ureg.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. struct Ureg {
  10. uint64_t ax;
  11. uint64_t bx;
  12. uint64_t cx;
  13. uint64_t dx;
  14. uint64_t si;
  15. uint64_t di;
  16. uint64_t bp;
  17. uint64_t r8;
  18. uint64_t r9;
  19. uint64_t r10;
  20. uint64_t r11;
  21. uint64_t r12;
  22. uint64_t r13;
  23. uint64_t r14;
  24. uint64_t r15;
  25. // These are pointless and not pushing them would simplify the
  26. // interrupt handler a lot. However, removing them would break
  27. // compatibility with Go Plan 9 binaries.
  28. uint16_t ds;
  29. uint16_t es;
  30. uint16_t fs;
  31. uint16_t gs;
  32. uint64_t type;
  33. uint64_t error; /* error code (or zero) */
  34. uint64_t ip; /* pc */
  35. uint64_t cs; /* old context */
  36. uint64_t flags; /* old flags */
  37. uint64_t sp; /* sp */
  38. uint64_t ss; /* old stack segment */
  39. };