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 eva argument to pmap_remove and passe...
details: https://anonhg.NetBSD.org/src/rev/0aed2af9488c
branches: trunk
changeset: 356862:0aed2af9488c
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Oct 17 16:23:50 2017 +0000
description:
Fix eva argument to pmap_remove and passed prot bits in flags for
pmap_enter, i.e. fix previous.
diffstat:
sys/arch/arm/arm32/vm_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 053a916a41a1 -r 0aed2af9488c sys/arch/arm/arm32/vm_machdep.c
--- a/sys/arch/arm/arm32/vm_machdep.c Tue Oct 17 16:07:18 2017 +0000
+++ b/sys/arch/arm/arm32/vm_machdep.c Tue Oct 17 16:23:50 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.71 2017/10/08 12:09:44 flxd Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.72 2017/10/17 16:23:50 skrll Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.71 2017/10/08 12:09:44 flxd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.72 2017/10/17 16:23:50 skrll Exp $");
#include "opt_armfpe.h"
#include "opt_pmap_debug.h"
@@ -246,7 +246,7 @@
while (len) {
(void) pmap_extract(pm, faddr, &fpa);
pmap_enter(pmap_kernel(), taddr, fpa, VM_PROT_READ|VM_PROT_WRITE,
- PMAP_WIRED);
+ VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
faddr += PAGE_SIZE;
taddr += PAGE_SIZE;
len -= PAGE_SIZE;
@@ -281,7 +281,7 @@
off = (vaddr_t)bp->b_data - addr;
len = round_page(off + len);
- pmap_remove(pmap_kernel(), addr, len);
+ pmap_remove(pmap_kernel(), addr, addr + len);
pmap_update(pmap_kernel());
uvm_km_free(phys_map, addr, len, UVM_KMF_VAONLY);
bp->b_data = bp->b_saveaddr;
Home |
Main Index |
Thread Index |
Old Index