summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/fp.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-04-01 04:02:45 +0000
committerjake <jake@FreeBSD.org>2003-04-01 04:02:45 +0000
commit06240b6c8104a93f55af6bb6b2ab1d52b69a69e7 (patch)
tree46d803215acb4fbb58f19717fec4fc35096d497f /sys/sparc64/include/fp.h
parent16b13762b2f9a735b1bb3066d85644f0deff320d (diff)
downloadFreeBSD-src-06240b6c8104a93f55af6bb6b2ab1d52b69a69e7.zip
FreeBSD-src-06240b6c8104a93f55af6bb6b2ab1d52b69a69e7.tar.gz
- Rename pcb_fpstate to pcb_ufp (user floating point), and change it to
a simple array of 64 ints. - Use a critical section when saving floating point state in cpu_fork instead of sched_lock.
Diffstat (limited to 'sys/sparc64/include/fp.h')
-rw-r--r--sys/sparc64/include/fp.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/sparc64/include/fp.h b/sys/sparc64/include/fp.h
index a5caf9e..bf0d79a 100644
--- a/sys/sparc64/include/fp.h
+++ b/sys/sparc64/include/fp.h
@@ -27,26 +27,13 @@
#ifndef _MACHINE_FP_H_
#define _MACHINE_FP_H_
-/* A block of 8 double-precision (16 single-precision) FP registers. */
-struct fpblock {
- u_int fpb_i[16];
-};
-
-struct fpstate {
- struct fpblock fp_fb[4];
-};
-
#ifdef _KERNEL
-struct pcb;
-struct thread;
-
/*
- * Note: The pointers passed to the next two functions must be aligned on
- * 64 byte boundaries.
+ * Note: The pointer passed to savefpctx must be aligned on a 64 byte
+ * boundary.
*/
-void savefpctx(struct fpstate *);
-void restorefpctx(struct fpstate *);
+void savefpctx(uint32_t *fp);
#endif /* _KERNEL */
#endif /* !_MACHINE_FP_H_ */
OpenPOWER on IntegriCloud