diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-02-10 10:47:59 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-02-10 10:47:59 +0000 |
commit | f1d871059562a554461b3edd8d64fe267f6ce93e (patch) | |
tree | e43206423a3092e450b1d5a9a071112776740403 /sys/arch | |
parent | bbe3bddc5284e6d498c7e40d2f13ca2a5390a19b (diff) |
fix sparc64 specific commons
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/include/cpu.h | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/cpu.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index fc173d715d9..df075e0ce2d 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.15 2002/08/02 04:22:04 jason Exp $ */ +/* $OpenBSD: cpu.h,v 1.16 2003/02/10 10:47:58 jason Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -230,8 +230,8 @@ int want_resched; /* resched() was called */ * * XXX this must be per-cpu (eventually) */ -struct proc *fpproc; /* FPU owner */ -int foundfpu; /* true => we have an FPU */ +extern struct proc *fpproc; /* FPU owner */ +extern int foundfpu; /* true => we have an FPU */ /* * Interrupt handler chains. Interrupt handlers should return 0 for diff --git a/sys/arch/sparc64/sparc64/cpu.c b/sys/arch/sparc64/sparc64/cpu.c index e7de4d8020c..b0e69b39083 100644 --- a/sys/arch/sparc64/sparc64/cpu.c +++ b/sys/arch/sparc64/sparc64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.9 2002/06/15 17:23:31 art Exp $ */ +/* $OpenBSD: cpu.c,v 1.10 2003/02/10 10:47:58 jason Exp $ */ /* $NetBSD: cpu.c,v 1.13 2001/05/26 21:27:15 chs Exp $ */ /* @@ -80,6 +80,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */ char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */ char cpu_model[100]; +struct proc *fpproc; +int foundfpu; + /* The CPU configuration driver. */ static void cpu_attach(struct device *, struct device *, void *); int cpu_match(struct device *, void *, void *); |