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 Fix a bug introduced in 1.271 where pmap_...



details:   https://anonhg.NetBSD.org/src/rev/d3862e63d60a
branches:  trunk
changeset: 467206:d3862e63d60a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jan 17 16:59:07 2020 +0000

description:
Fix a bug introduced in 1.271 where pmap_grow_map would no longer map
the allocated page for the uvm.page_init_done == false case when
PMAP_STEAL_MEMORY is not defined.

diffstat:

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

diffs (28 lines):

diff -r f2d1a3806f4b -r d3862e63d60a sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Jan 17 16:58:57 2020 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Jan 17 16:59:07 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.377 2020/01/17 12:40:44 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.378 2020/01/17 16:59:07 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -221,7 +221,7 @@
 #include <arm/db_machdep.h>
 #endif
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.377 2020/01/17 12:40:44 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.378 2020/01/17 16:59:07 skrll Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -5787,6 +5787,9 @@
 #else
                if (uvm_page_physget(&pa) == false)
                        return (1);
+
+               pmap_kenter_pa(va, pa,
+                   VM_PROT_READ|VM_PROT_WRITE, PMAP_KMPAGE|PMAP_PTE);
 #endif /* PMAP_STEAL_MEMORY */
        } else {
                struct vm_page *pg;



Home | Main Index | Thread Index | Old Index