summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/Makefrag11
-rw-r--r--i386/bogus/fpe.h1
-rw-r--r--i386/i386/fpe_linkage.c4
3 files changed, 5 insertions, 11 deletions
diff --git a/i386/Makefrag b/i386/Makefrag
index c55505c..92838fe 100644
--- a/i386/Makefrag
+++ b/i386/Makefrag
@@ -40,9 +40,6 @@ vpath %.S $(sysdep)/i386at $(sysdep)/i386
objfiles += busses.o cirbuf.o
vpath busses.c $(srcdir)/chips
-# FPE emulation
-objfiles += fpe.o
-
# Mig-generated
objfiles += mach_i386_server.o
@@ -132,11 +129,3 @@ i386-installed-headers= \
rpc.h syscall_sw.h \
thread_status.h trap.h vm_param.h \
vm_types.h)
-
-
-# Cheat, cheat, cheat.
-fpe.o: fpe.b_elf
- uudecode $<
-vpath fpe.b_elf $(sysdep)/i386
-
-fpe.d:; touch $@
diff --git a/i386/bogus/fpe.h b/i386/bogus/fpe.h
index c5c0304..3850b40 100644
--- a/i386/bogus/fpe.h
+++ b/i386/bogus/fpe.h
@@ -1 +1,2 @@
+/* We do not have a floating point implementation. */
#define FPE 0
diff --git a/i386/i386/fpe_linkage.c b/i386/i386/fpe_linkage.c
index cac58e0..e32f7fa 100644
--- a/i386/i386/fpe_linkage.c
+++ b/i386/i386/fpe_linkage.c
@@ -30,6 +30,8 @@
#include <fpe.h>
+#if FPE
+
#include <cpus.h>
#include <mach/std_types.h>
@@ -357,3 +359,5 @@ fpe_exception_fixup(exc, code, subcode)
}
exception(exc, code, subcode);
}
+#endif /* FPE. */
+