summaryrefslogtreecommitdiff
path: root/i386/i386/fpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/fpu.h')
-rw-r--r--i386/i386/fpu.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/i386/i386/fpu.h b/i386/i386/fpu.h
index bb332ad..3e92de7 100644
--- a/i386/i386/fpu.h
+++ b/i386/i386/fpu.h
@@ -69,32 +69,6 @@
#define fwait() \
asm("fwait");
-/*
- * If floating-point instructions are emulated,
- * we must load the floating-point register selector
- * when switching to a new thread.
- */
-#if FPE
-extern void disable_fpe();
-extern void enable_fpe();
-
-#define fpu_save_context(thread) \
- { \
- if (fp_kind == FP_SOFT) \
- disable_fpe(); \
- else \
- set_ts(); \
- }
-
-#define fpu_load_context(pcb) \
- { \
- register struct i386_fpsave_state *ifps; \
- if (fp_kind == FP_SOFT && (ifps = pcb->ims.ifps) != 0) \
- enable_fpe(ifps); \
- }
-
-#else /* no FPE */
-
#define fpu_load_context(pcb)
/*
@@ -124,8 +98,6 @@ extern void enable_fpe();
#endif /* NCPUS == 1 */
-#endif /* no FPE */
-
extern int fp_kind;
#endif /* _I386_FPU_H_ */