Use tlen for temporary length variable instead of l, which is usually
used for struct lwp *. No binary changes.
This commit is contained in:
parent
bc395342ad
commit
a08fee7be0
@ -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>
|
||||
@ -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 @@ pmap_procwr(struct proc *p, vaddr_t sva, int len)
|
||||
struct pmap *pm = p->p_vmspace->vm_map.pmap;
|
||||
paddr_t pa;
|
||||
vaddr_t va, eva;
|
||||
int l;
|
||||
int tlen;
|
||||
|
||||
for (va = sva; len > 0; va = eva, len -= l) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user