Author: jhb
Date: Mon Feb 23 15:39:24 2009
New Revision: 188938
URL: http://svn.freebsd.org/changeset/base/188938

Log:
  Some whitespace and style fixes.
  
  Submitted by: bde (partly)

Modified:
  head/sys/amd64/amd64/fpu.c
  head/sys/i386/isa/npx.c

Modified: head/sys/amd64/amd64/fpu.c
==============================================================================
--- head/sys/amd64/amd64/fpu.c  Mon Feb 23 15:38:35 2009        (r188937)
+++ head/sys/amd64/amd64/fpu.c  Mon Feb 23 15:39:24 2009        (r188938)
@@ -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;

Modified: head/sys/i386/isa/npx.c
==============================================================================
--- head/sys/i386/isa/npx.c     Mon Feb 23 15:38:35 2009        (r188937)
+++ head/sys/i386/isa/npx.c     Mon Feb 23 15:39:24 2009        (r188938)
@@ -167,9 +167,8 @@ static      long    timezero(const char *funcnam
 
 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.,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to