Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev fix various typos in comments.



details:   https://anonhg.NetBSD.org/src/rev/b2040a9be950
branches:  trunk
changeset: 368332:b2040a9be950
user:      andvar <andvar%NetBSD.org@localhost>
date:      Tue Jul 05 20:15:40 2022 +0000

description:
fix various typos in comments.

diffstat:

 sys/arch/powerpc/booke/trap_subr.S |  14 +++++++-------
 sys/arch/sparc64/sparc64/locore.s  |   4 ++--
 sys/dev/video_if.h                 |   6 +++---
 3 files changed, 12 insertions(+), 12 deletions(-)

diffs (97 lines):

diff -r 5a3fc102c0ff -r b2040a9be950 sys/arch/powerpc/booke/trap_subr.S
--- a/sys/arch/powerpc/booke/trap_subr.S        Tue Jul 05 19:31:04 2022 +0000
+++ b/sys/arch/powerpc/booke/trap_subr.S        Tue Jul 05 20:15:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap_subr.S,v 1.14 2022/05/07 04:19:22 rin Exp $       */
+/*     $NetBSD: trap_subr.S,v 1.15 2022/07/05 20:15:40 andvar Exp $    */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -34,7 +34,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-RCSID("$NetBSD: trap_subr.S,v 1.14 2022/05/07 04:19:22 rin Exp $")
+RCSID("$NetBSD: trap_subr.S,v 1.15 2022/07/05 20:15:40 andvar Exp $")
 
 #ifdef _KERNEL_OPT
 #include "opt_altivec.h"
@@ -48,9 +48,9 @@
        /*
         * We have a problem with critical (MSR[CE] or machine check (MSR[ME])
         * or debug (MSR[DE]) interrupts/exception in that they could happen
-        * inbetween the mtsprg1 %r2 and mfsprg1 %r2.  If that happens, %r2
+        * in-between the mtsprg1 %r2 and mfsprg1 %r2.  If that happens, %r2
         * will be lost.  Even if we moved to a different sprg, subsequent
-        * expceptions would use SPRG1 and its value would be lost.  The only
+        * exceptions would use SPRG1 and its value would be lost.  The only
         * way to be safe for CE/ME/DE faults to save and restore SPRG1.
         *
         * Since CE/ME/DE faults may happen anytime, we need r1 to always
@@ -61,7 +61,7 @@
         * mchk) uses a unique sprg to save %r2 (sprg1, sprg4, sprg5).
         *
         * Since we can't control how many nested exceptions we might get,
-        * we don't use a dedicated save area.  Instead we have a upwards
+        * we don't use a dedicated save area.  Instead we have an upwards
         * growing "stack" of them; the pointer to which is kept in sprg3.
         *
         * To allocate from the stack, one fetches sprg3, adds the amount
@@ -181,10 +181,10 @@
 #define        FRAME_RESTORE_SPEFSCR
 #endif
 /*
- * Before the first memory refernence, we must have our state inside registers
+ * Before the first memory reference, we must have our state inside registers
  * since the first memory access might cause an exception which would cause
  * SRR0/SRR1 and DEAR/ESR to become unrecoverable.  CR and XER also need to be
- * saved early since they will modified by instrction flow.  The saved stack
+ * saved early since they will modified by instruction flow.  The saved stack
  * pointer is also critical but LR and CTR can be deferred being saved until
  * we are actually filling a trapframe.
  */
diff -r 5a3fc102c0ff -r b2040a9be950 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Tue Jul 05 19:31:04 2022 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Tue Jul 05 20:15:40 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.430 2022/06/27 22:41:28 andvar Exp $      */
+/*     $NetBSD: locore.s,v 1.431 2022/07/05 20:15:40 andvar Exp $      */
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -6679,7 +6679,7 @@
  * cpu_switchto() switches to an lwp to run and runs it, saving the
  * current one away.
  *
- * stuct lwp * cpu_switchto(struct lwp *current, struct lwp *next)
+ * struct lwp * cpu_switchto(struct lwp *current, struct lwp *next)
  * Switch to the specified next LWP
  * Arguments:
  *     i0      'struct lwp *' of the current LWP
diff -r 5a3fc102c0ff -r b2040a9be950 sys/dev/video_if.h
--- a/sys/dev/video_if.h        Tue Jul 05 19:31:04 2022 +0000
+++ b/sys/dev/video_if.h        Tue Jul 05 20:15:40 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: video_if.h,v 1.11 2022/03/03 06:23:25 riastradh Exp $ */
+/* $NetBSD: video_if.h,v 1.12 2022/07/05 20:15:40 andvar Exp $ */
 
 /*
  * Copyright (c) 2008 Patrick Mahoney <pat%polycrystal.org@localhost>
@@ -124,7 +124,7 @@
        VIDEO_CONTROL_HFLIP,
        VIDEO_CONTROL_VFLIP,
        /* Custom controls start here; any controls beyond this are
-        * valid and condsidered "extended". */
+        * valid and considered "extended". */
        VIDEO_CONTROL_EXTENDED
 };
 
@@ -311,7 +311,7 @@
 };
 
 #ifdef undef
-/* Stucts for future split into format/frame/interval.  All functions
+/* Structs for future split into format/frame/interval.  All functions
  * interacting with the hardware layer will deal with these structs.
  * This video layer will handle translating them to V4L2 structs as
  * necessary. */



Home | Main Index | Thread Index | Old Index