Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Alight code re-organisation so it better ...



details:   https://anonhg.NetBSD.org/src/rev/bfec2c07aa38
branches:  trunk
changeset: 364356:bfec2c07aa38
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 19 09:54:25 2022 +0000

description:
Alight code re-organisation so it better matches the VPRINTF headings
it is under. NFCI.

diffstat:

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

diffs (43 lines):

diff -r e5a7519ba70c -r bfec2c07aa38 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat Mar 19 09:53:18 2022 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat Mar 19 09:54:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.433 2022/03/12 15:32:31 riastradh Exp $     */
+/*     $NetBSD: pmap.c,v 1.434 2022/03/19 09:54:25 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -192,7 +192,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.433 2022/03/12 15:32:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.434 2022/03/19 09:54:25 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -6229,6 +6229,7 @@
         * Initialise the kernel pmap object
         */
        curcpu()->ci_pmap_cur = pm;
+       pm->pm_refs = 1;
 #ifdef ARM_MMU_EXTENDED
        pm->pm_l1 = l1pt;
        pm->pm_l1_pa = kernel_l1pt.pv_pa;
@@ -6242,6 +6243,7 @@
 #else
        pm->pm_l1 = l1;
 #endif
+       mutex_init(&pm->pm_lock, MUTEX_DEFAULT, IPL_VM);
 
        VPRINTF("locks ");
        /*
@@ -6250,8 +6252,6 @@
         */
        mutex_init(&pmap_lock, MUTEX_DEFAULT, IPL_VM);
        mutex_init(&kpm_lock, MUTEX_DEFAULT, IPL_NONE);
-       mutex_init(&pm->pm_lock, MUTEX_DEFAULT, IPL_VM);
-       pm->pm_refs = 1;
 
        VPRINTF("l1pt ");
        /*



Home | Main Index | Thread Index | Old Index