math_emu.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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 *buf);
  5. int save_i387_soft(void *s387, struct _fpstate * 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 ___orig_eax;
  22. long ___eip;
  23. long ___cs;
  24. long ___eflags;
  25. long ___esp;
  26. long ___ss;
  27. long ___vm86_es; /* This and the following only in vm86 mode */
  28. long ___vm86_ds;
  29. long ___vm86_fs;
  30. long ___vm86_gs;
  31. };
  32. #endif