summaryrefslogtreecommitdiff
path: root/sys/arch/sh/include/pcb.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/pcb.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/pcb.h')
-rw-r--r--sys/arch/sh/include/pcb.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sh/include/pcb.h b/sys/arch/sh/include/pcb.h
index 2dbc63c7cfa..b723f2e4264 100644
--- a/sys/arch/sh/include/pcb.h
+++ b/sys/arch/sh/include/pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcb.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: pcb.h,v 1.2 2007/03/02 06:11:54 miod Exp $ */
/* $NetBSD: pcb.h,v 1.7 2002/05/09 12:28:08 uch Exp $ */
/*-
@@ -41,15 +41,17 @@
#define _SH_PCB_H_
#include <sh/frame.h>
+#include <sh/reg.h>
struct pcb {
- struct switchframe pcb_sf; /* kernel context for resume */
- caddr_t pcb_onfault; /* for copyin/out fault */
- int pcb_faultbail; /* bail out before call uvm_fault. */
+ struct switchframe pcb_sf; /* kernel context for resume */
+ caddr_t pcb_onfault; /* for copyin/out fault */
+ struct fpreg pcb_fp; /* fp context for resume */
};
struct md_coredump {
};
extern struct pcb *curpcb;
+
#endif /* !_SH_PCB_H_ */