summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/fpu.h
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-05-13 07:44:48 +0000
committerbenno <benno@FreeBSD.org>2002-05-13 07:44:48 +0000
commit6ef515f72a2fd76a0660b8c6aa8bd611f5481882 (patch)
treeb87070b79c70db91dc6d8aa37b62ed7243065782 /sys/powerpc/include/fpu.h
parente3aab230b035c2d89fa33995f9679edc92f901cb (diff)
downloadFreeBSD-src-6ef515f72a2fd76a0660b8c6aa8bd611f5481882.zip
FreeBSD-src-6ef515f72a2fd76a0660b8c6aa8bd611f5481882.tar.gz
FPU support.
Obtained from: NetBSD (portions)
Diffstat (limited to 'sys/powerpc/include/fpu.h')
-rw-r--r--sys/powerpc/include/fpu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/powerpc/include/fpu.h b/sys/powerpc/include/fpu.h
index 1f23caa..c01637b 100644
--- a/sys/powerpc/include/fpu.h
+++ b/sys/powerpc/include/fpu.h
@@ -68,4 +68,15 @@
#define FPSCR_NI 0x00000004
#define FPSCR_RN 0x00000003
+#ifdef _KERNEL
+
+/* List of PowerPC architectures that support FPUs. */
+#if defined(MPC750)
+#define PPC_HAVE_FPU
+
+void enable_fpu(struct thread *);
+void save_fpu(struct thread *);
+#endif /* PPC_HAVE_FPU */
+#endif /* _KERNEL */
+
#endif /* _MACHINE_FPU_H_ */
OpenPOWER on IntegriCloud