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 Fix length of memset in tlb_record_...



details:   https://anonhg.NetBSD.org/src/rev/da739bdfec1f
branches:  trunk
changeset: 990494:da739bdfec1f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Oct 29 07:55:04 2021 +0000

description:
Fix length of memset in tlb_record_asids

diffstat:

 sys/arch/aarch64/aarch64/aarch64_tlb.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2f9d668df0a4 -r da739bdfec1f sys/arch/aarch64/aarch64/aarch64_tlb.c
--- a/sys/arch/aarch64/aarch64/aarch64_tlb.c    Fri Oct 29 04:13:39 2021 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_tlb.c    Fri Oct 29 07:55:04 2021 +0000
@@ -31,7 +31,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_tlb.c,v 1.1 2021/10/10 07:15:25 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_tlb.c,v 1.2 2021/10/29 07:55:04 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -104,7 +104,7 @@
        KASSERT(asid_max == pmap_md_tlb_asid_max());
 
 #if DIAGNOSTIC
-       memset(mapp, 0xff, (asid_max + 1) / (NBBY * sizeof(u_long)));
+       memset(mapp, 0xff, (asid_max + 1) / NBBY);
        mapp[0] ^= __BITS(0, KERNEL_PID);
 #endif
        return asid_max;



Home | Main Index | Thread Index | Old Index