emu.h 497 B

123456789101112131415161718192021222324
  1. /*
  2. * system- and machine-specific declarations for emu:
  3. * floating-point save and restore, signal handling primitive, and
  4. * implementation of the current-process variable `up'.
  5. */
  6. /*
  7. * This structure must agree with FPsave and FPrestore asm routines
  8. */
  9. typedef struct FPU FPU;
  10. struct FPU
  11. {
  12. uchar env[28];
  13. };
  14. extern void sleep(int);
  15. /* Set up private thread space */
  16. extern __declspec(thread) Proc* up;
  17. #define Sleep NTsleep
  18. typedef jmp_buf osjmpbuf;
  19. #define ossetjmp(buf) setjmp(buf)