diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-09-09 12:57:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-09-09 12:57:41 +0000 |
commit | a10d340a1b94fb8f5543f7d886e0f6649f8e846d (patch) | |
tree | 3b407bf8c01081bced8509f55baca6cf0d6bb338 /sys/arch/sparc64/include | |
parent | c59518e8bf05d8494a56e3664893de452a616f72 (diff) |
Make fpproc per-cpu. This turns fpproc into a macro, so adjust fpu/fpu.c
to avoid collisions.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/cpu.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 3016de9e581..598948b989f 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.43 2007/09/09 08:55:26 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.44 2007/09/09 12:57:40 kettenis Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -128,6 +128,7 @@ extern struct cpu_info *cpus; for (cii = 0, ci = curcpu(); ci != NULL; ci = NULL) #define curpcb curcpu()->ci_cpcb +#define fpproc curcpu()->ci_fpproc /* * definitions of cpu-dependent requirements @@ -182,13 +183,6 @@ extern void need_resched(struct cpu_info *); void signotify(struct proc *); -/* - * Only one process may own the FPU state. - * - * XXX this must be per-cpu (eventually) - */ -extern struct proc *fpproc; /* FPU owner */ - /* machdep.c */ int ldcontrolb(caddr_t); void dumpconf(void); |