summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include/cpu.h
diff options
context:
space:
mode:
authorTakuya ASADA <syuu@cvs.openbsd.org>2010-01-08 01:35:53 +0000
committerTakuya ASADA <syuu@cvs.openbsd.org>2010-01-08 01:35:53 +0000
commit00c362481c438c6cc4b467504aa317a13d015c5f (patch)
tree0143ec6d0b75e1c17b0b7e54139645685227be4c /sys/arch/mips64/include/cpu.h
parent1241b457a2c904c3d40e20a5070cdbb0a70a341d (diff)
MP-safe FPU handling. ok miod@
Diffstat (limited to 'sys/arch/mips64/include/cpu.h')
-rw-r--r--sys/arch/mips64/include/cpu.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 57d14b39b81..cb2d70e10d1 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.50 2009/12/30 01:17:59 syuu Exp $ */
+/* $OpenBSD: cpu.h,v 1.51 2010/01/08 01:35:52 syuu Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -370,6 +370,7 @@ struct cpu_info {
struct cpu_info *ci_next; /* next cpu */
struct proc *ci_curproc;
struct user *ci_curprocpaddr;
+ struct proc *ci_fpuproc; /* pointer to last proc to use FP */
struct schedstate_percpu
ci_schedstate;
@@ -602,8 +603,9 @@ int tlb_update(vaddr_t, unsigned);
void tlb_read(int, struct tlb_entry *);
void savectx(struct user *, int);
-void MipsSaveCurFPState(struct proc *);
-void MipsSaveCurFPState16(struct proc *);
+
+void enable_fpu(struct proc *);
+void save_fpu(void);
int guarded_read_4(paddr_t, uint32_t *);
int guarded_write_4(paddr_t, uint32_t);