Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Use tlen for temporary length varia...



details:   https://anonhg.NetBSD.org/src/rev/cf87a735d6a4
branches:  trunk
changeset: 973577:cf87a735d6a4
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jul 04 16:58:11 2020 +0000

description:
Use tlen for temporary length variable instead of l, which is usually
used for struct lwp *.

No binary changes.

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (39 lines):

diff -r 708cca98133f -r cf87a735d6a4 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Sat Jul 04 16:30:47 2020 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Sat Jul 04 16:58:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.82 2020/07/02 13:01:11 rin Exp $    */
+/*     $NetBSD: pmap.c,v 1.83 2020/07/04 16:58:11 rin Exp $    */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.82 2020/07/02 13:01:11 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.83 2020/07/04 16:58:11 rin Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -951,15 +951,15 @@
                struct pmap *pm = p->p_vmspace->vm_map.pmap;
                paddr_t pa;
                vaddr_t va, eva;
-               int l;
-
-               for (va = sva; len > 0; va = eva, len -= l) {
+               int tlen;
+
+               for (va = sva; len > 0; va = eva, len -= tlen) {
                        eva = uimin(va + len, trunc_page(va + PAGE_SIZE));
-                       l = eva - va;
+                       tlen = eva - va;
                        if (!pmap_extract(pm, va, &pa))
                                continue;
                        va = AARCH64_PA_TO_KVA(pa);
-                       cpu_icache_sync_range(va, l);
+                       cpu_icache_sync_range(va, tlen);
                }
        }
 }



Home | Main Index | Thread Index | Old Index