summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/cpu.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-16 19:22:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-16 19:22:50 +0000
commit2aea4e1f69df9a598eff00e01018d7dc7d96751b (patch)
tree40c91e4b1b8e2ad07a343313fa77cbebee097f18 /sys/arch/sparc64/include/cpu.h
parent977cef7024d99e298a46d5beceea7e06ad52c039 (diff)
Make lazy fpu context switching work for MULTIPROCESSOR kernels. Tested by
many. ok deraadt@
Diffstat (limited to 'sys/arch/sparc64/include/cpu.h')
-rw-r--r--sys/arch/sparc64/include/cpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h
index c9da79d2235..b888013280d 100644
--- a/sys/arch/sparc64/include/cpu.h
+++ b/sys/arch/sparc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.47 2007/10/16 19:13:53 kettenis Exp $ */
+/* $OpenBSD: cpu.h,v 1.48 2007/10/16 19:22:49 kettenis Exp $ */
/* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */
/*
@@ -225,6 +225,7 @@ int statintr(void *); /* level 14 (statclock) interrupt code */
struct fpstate64;
void savefpstate(struct fpstate64 *);
void loadfpstate(struct fpstate64 *);
+void clearfpstate(void);
u_int64_t probeget(paddr_t, int, int);
#define write_all_windows() __asm __volatile("flushw" : : )
#define write_user_windows() __asm __volatile("flushw" : : )
@@ -240,6 +241,8 @@ void switchtoctx(int);
/* trap.c */
void pmap_unuse_final(struct proc *);
int rwindow_save(struct proc *);
+/* vm_machdep.c */
+void save_and_clear_fpstate(struct proc *);
/* amd7930intr.s */
void amd7930_trap(void);
/* cons.c */