Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Fix a comment



details:   https://anonhg.NetBSD.org/src/rev/b0c5131897ad
branches:  trunk
changeset: 744706:b0c5131897ad
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Feb 10 22:13:50 2020 +0000

description:
Fix a comment

diffstat:

 sys/arch/i386/i386/locore.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 04fa34573133 -r b0c5131897ad sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S       Mon Feb 10 22:13:01 2020 +0000
+++ b/sys/arch/i386/i386/locore.S       Mon Feb 10 22:13:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.177 2020/01/15 18:47:23 ad Exp $  */
+/*     $NetBSD: locore.S,v 1.178 2020/02/10 22:13:50 skrll Exp $       */
 
 /*
  * Copyright-o-rama!
@@ -128,7 +128,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.177 2020/01/15 18:47:23 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.178 2020/02/10 22:13:50 skrll Exp $");
 
 #include "opt_copy_symtab.h"
 #include "opt_ddb.h"
@@ -1289,8 +1289,8 @@
  * struct lwp *cpu_switchto(struct lwp *oldlwp, struct lwp *newlwp,
  *     bool returning)
  *
- *     1. if (oldlwp != NULL), save its context.
- *     2. then, restore context of newlwp.
+ *     1. save context of oldlwp.
+ *     2. restore context of newlwp.
  *
  * Note that the stack frame layout is known to "struct switchframe" in
  * <machine/frame.h> and to the code in cpu_lwp_fork() which initializes



Home | Main Index | Thread Index | Old Index