Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Fix a comment.



details:   https://anonhg.NetBSD.org/src/rev/8c9526307e53
branches:  trunk
changeset: 1008235:8c9526307e53
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Mar 15 19:41:04 2020 +0000

description:
Fix a comment.

diffstat:

 sys/arch/x86/x86/pmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 590b59164738 -r 8c9526307e53 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sun Mar 15 15:58:24 2020 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sun Mar 15 19:41:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.369 2020/03/15 15:58:24 ad Exp $    */
+/*     $NetBSD: pmap.c,v 1.370 2020/03/15 19:41:04 ad Exp $    */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017, 2019, 2020 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.369 2020/03/15 15:58:24 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.370 2020/03/15 19:41:04 ad Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -2032,7 +2032,7 @@
         *
         * If the page is tracked with an embedded entry then the tree
         * lookup can be avoided.  It's safe to check for this specific
-        * set of values without pp_lock because all 3 will only ever be
+        * set of values without pp_lock because both will only ever be
         * set together for this pmap.
         *
         */
@@ -2088,7 +2088,7 @@
         * If entering the same page and it's already tracked with an
         * embedded entry, we can avoid the expense below.  It's safe
         * to check for this very specific set of values without a lock
-        * because all 3 will only ever be set together for this pmap.
+        * because both will only ever be set together for this pmap.
         */
        if (atomic_load_relaxed(&pp->pp_pte.pte_ptp) == ptp &&
            atomic_load_relaxed(&pp->pp_pte.pte_va) == va) {



Home | Main Index | Thread Index | Old Index