math_emu.h 768 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _I386_MATH_EMU_H
  2. #define _I386_MATH_EMU_H
  3. #include <asm/sigcontext.h>
  4. int restore_i387_soft(void *s387, struct _fpstate __user *buf);
  5. int save_i387_soft(void *s387, struct _fpstate __user *buf);
  6. /* This structure matches the layout of the data saved to the stack
  7. following a device-not-present interrupt, part of it saved
  8. automatically by the 80386/80486.
  9. */
  10. struct info {
  11. long ___orig_eip;
  12. long ___ebx;
  13. long ___ecx;
  14. long ___edx;
  15. long ___esi;
  16. long ___edi;
  17. long ___ebp;
  18. long ___eax;
  19. long ___ds;
  20. long ___es;
  21. long ___fs;
  22. long ___orig_eax;
  23. long ___eip;
  24. long ___cs;
  25. long ___eflags;
  26. long ___esp;
  27. long ___ss;
  28. long ___vm86_es; /* This and the following only in vm86 mode */
  29. long ___vm86_ds;
  30. long ___vm86_fs;
  31. long ___vm86_gs;
  32. };
  33. #endif