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 CACHE_LINE_SIZE instead of magi...



details:   https://anonhg.NetBSD.org/src/rev/a8ed50258782
branches:  trunk
changeset: 374242:a8ed50258782
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Apr 12 06:57:28 2023 +0000

description:
Use CACHE_LINE_SIZE instead of magic number 128.

diffstat:

 sys/arch/aarch64/aarch64/pmap_machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 2e0d7c96fae9 -r a8ed50258782 sys/arch/aarch64/aarch64/pmap_machdep.c
--- a/sys/arch/aarch64/aarch64/pmap_machdep.c   Wed Apr 12 06:49:17 2023 +0000
+++ b/sys/arch/aarch64/aarch64/pmap_machdep.c   Wed Apr 12 06:57:28 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_machdep.c,v 1.3 2023/02/25 00:40:22 riastradh Exp $       */
+/*     $NetBSD: pmap_machdep.c,v 1.4 2023/04/12 06:57:28 skrll Exp $   */
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 #define __PMAP_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.3 2023/02/25 00:40:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.4 2023/04/12 06:57:28 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -513,7 +513,8 @@ pmap_bootstrap(vaddr_t vstart, vaddr_t v
 #endif
            IPL_NONE);
 
-       pmap_pvlist_lock_init(/*arm_dcache_align*/ 128);
+       // arm_dcache_align
+       pmap_pvlist_lock_init(CACHE_LINE_SIZE);
 
        VPRINTF("done\n");
 }



Home | Main Index | Thread Index | Old Index