From 0b7dc0a7c6dd55638806705525107e6e74ed101c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 23 Feb 2009 15:39:24 +0000 Subject: [PATCH] Some whitespace and style fixes. Submitted by: bde (partly) --- sys/amd64/amd64/fpu.c | 6 ++---- sys/i386/isa/npx.c | 9 ++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index d051713ffe58..85e5ec9df4aa 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -98,10 +98,8 @@ typedef u_char bool_t; static void fpu_clean_state(void); -int hw_float = 1; -SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint, - CTLFLAG_RD, &hw_float, 0, - "Floatingpoint instructions executed in hardware"); +SYSCTL_INT(_hw, HW_FLOATINGPT, floatingpoint, CTLFLAG_RD, + NULL, 1, "Floating point instructions executed in hardware"); static struct savefpu fpu_cleanstate; static bool_t fpu_cleanstate_ready; diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index 29dc2ca9702f..476ef4ebd544 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -167,9 +167,8 @@ static long timezero(const char *funcname, int hw_float; /* XXX currently just alias for npx_exists */ -SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint, - CTLFLAG_RD, &hw_float, 0, - "Floatingpoint instructions executed in hardware"); +SYSCTL_INT(_hw, HW_FLOATINGPT, floatingpoint, CTLFLAG_RD, + &hw_float, 0, "Floating point instructions executed in hardware"); static volatile u_int npx_intrs_while_probing; static volatile u_int npx_traps_while_probing; @@ -812,8 +811,8 @@ npxdna() pcb->pcb_flags |= PCB_NPXINITDONE; } else { /* - * The following frstor may cause an IRQ13 when the state - * being restored has a pending error. The error will + * The following fpurstor() may cause an IRQ13 when the + * state being restored has a pending error. The error will * appear to have been triggered by the current (npx) user * instruction even when that instruction is a no-wait * instruction that should not trigger an error (e.g.,