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 1 page is enough for memhook now since th...



details:   https://anonhg.NetBSD.org/src/rev/a2f17ff33f6b
branches:  trunk
changeset: 973538:a2f17ff33f6b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jul 03 17:14:23 2020 +0000

description:
1 page is enough for memhook now since the merge of the rmind-uvmplock
branch and the removal of sys/arch/arm/arm32/mem.c

The last users of memhook don't care about number of CPUs or page colours.

diffstat:

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

diffs (36 lines):

diff -r 3e751696f958 -r a2f17ff33f6b sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Jul 03 17:03:09 2020 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Jul 03 17:14:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.415 2020/06/21 07:14:15 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.416 2020/07/03 17:14:23 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -192,7 +192,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.415 2020/06/21 07:14:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.416 2020/07/03 17:14:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -6301,6 +6301,9 @@
        virtual_end = vend;
 
        VPRINTF("specials ");
+
+       pmap_alloc_specials(&virtual_avail, 1, &memhook, NULL);
+
 #ifdef PMAP_CACHE_VIPT
        /*
         * If we have a VIPT cache, we need one page/pte per possible alias
@@ -6325,7 +6328,6 @@
        pmap_set_pt_cache_mode(l1pt, (vaddr_t)csrc_pte, nptes);
        pmap_alloc_specials(&virtual_avail, nptes, &cdstp, &cdst_pte);
        pmap_set_pt_cache_mode(l1pt, (vaddr_t)cdst_pte, nptes);
-       pmap_alloc_specials(&virtual_avail, nptes, &memhook, NULL);
        if (msgbufaddr == NULL) {
                pmap_alloc_specials(&virtual_avail,
                    round_page(MSGBUFSIZE) / PAGE_SIZE,



Home | Main Index | Thread Index | Old Index