summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/npx.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
committerarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
commit60d13c7a9dd18f720483338ebef03609492ca98c (patch)
tree5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/i386/isa/npx.c
parent2f8d013d96c256b3a48e227aab238e53eb9304cf (diff)
downloadFreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.zip
FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.tar.gz
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Diffstat (limited to 'sys/i386/isa/npx.c')
-rw-r--r--sys/i386/isa/npx.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 2ec330a..bb2b879 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.61 1998/06/21 18:02:39 bde Exp $
+ * $Id: npx.c,v 1.62 1998/10/22 05:58:40 bde Exp $
*/
#include "npx.h"
@@ -146,15 +146,17 @@ SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint,
CTLFLAG_RD, &hw_float, 0,
"Floatingpoint instructions executed in hardware");
-static u_int npx0_imask = SWI_CLOCK_MASK;
+#ifndef SMP
+static u_int npx0_imask = SWI_CLOCK_MASK;
+static struct gate_descriptor npx_idt_probeintr;
+static volatile u_int npx_intrs_while_probing;
+static volatile u_int npx_traps_while_probing;
+#endif
static bool_t npx_ex16;
static bool_t npx_exists;
-static struct gate_descriptor npx_idt_probeintr;
static int npx_intrno;
-static volatile u_int npx_intrs_while_probing;
static bool_t npx_irq13;
-static volatile u_int npx_traps_while_probing;
#ifndef SMP
/*
@@ -249,8 +251,10 @@ static int
npxprobe1(dvp)
struct isa_device *dvp;
{
+#ifndef SMP
u_short control;
u_short status;
+#endif
/*
* Partially reset the coprocessor, if any. Some BIOS's don't reset
OpenPOWER on IntegriCloud