1
0

ureg.h 971 B

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. u64 ax;
  11. u64 bx;
  12. u64 cx;
  13. u64 dx;
  14. u64 si;
  15. u64 di;
  16. u64 bp;
  17. u64 r8;
  18. u64 r9;
  19. u64 r10;
  20. u64 r11;
  21. u64 r12;
  22. u64 r13;
  23. u64 r14;
  24. u64 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. u16 ds;
  29. u16 es;
  30. u16 fs;
  31. u16 gs;
  32. u64 type;
  33. u64 error; /* error code (or zero) */
  34. u64 ip; /* pc */
  35. u64 cs; /* old context */
  36. u64 flags; /* old flags */
  37. u64 sp; /* sp */
  38. u64 ss; /* old stack segment */
  39. };