summaryrefslogtreecommitdiff
path: root/sys/arch/sh/include/cpu.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-02 06:11:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-02 06:11:55 +0000
commitb598146d1a6495e37a541155e84a68656e8d417c (patch)
tree5ac40829b66e0ddccc3d7c1058e48a3485307e3a /sys/arch/sh/include/cpu.h
parent5b3f6165185fde0cfa60cbcb08f04c98bc07b4ce (diff)
Move landisk to hardware floating point. At the moment the FPU context is
always saved upon context switches, as FPU registers are heavily used for long long computations (don't ask). Gcc default to -m4. Credits to drahn@ otto@ and deraadt@ for feedback and help testing. Upgrade procedure if you don't want to use the damn snapshots: - build and install new kernel, reboot off it - build new gcc, do not install it yet - make includes - install new gcc - build and install lib/csu and lib/libc - make build
Diffstat (limited to 'sys/arch/sh/include/cpu.h')
-rw-r--r--sys/arch/sh/include/cpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sh/include/cpu.h b/sys/arch/sh/include/cpu.h
index 28bd05964d9..721d3275b77 100644
--- a/sys/arch/sh/include/cpu.h
+++ b/sys/arch/sh/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.4 2007/01/15 22:22:19 martin Exp $ */
+/* $OpenBSD: cpu.h,v 1.5 2007/03/02 06:11:54 miod Exp $ */
/* $NetBSD: cpu.h,v 1.41 2006/01/21 04:24:12 uwe Exp $ */
/*-
@@ -204,6 +204,9 @@ void _cpu_spin(uint32_t); /* for delay loop. */
void delay(int);
struct pcb;
void savectx(struct pcb *);
+struct fpreg;
+void fpu_save(struct fpreg *);
+void fpu_restore(struct fpreg *);
void dumpsys(void);
#endif /* _KERNEL */
#endif /* !_SH_CPU_H_ */