From dc155b3bd5c2ac3f99d7bd97e4969a2cf6eb8317 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Tue, 23 Aug 2011 00:52:33 +0000 Subject: [PATCH] pmap_enter: fix pmap_do_enter parameters --- sys/arch/usermode/usermode/pmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/usermode/usermode/pmap.c b/sys/arch/usermode/usermode/pmap.c index 00111a5fc0f6..15f90cae8e97 100644 --- a/sys/arch/usermode/usermode/pmap.c +++ b/sys/arch/usermode/usermode/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.12 2011/08/22 21:59:09 reinoud Exp $ */ +/* $NetBSD: pmap.c,v 1.13 2011/08/23 00:52:33 jmcneill Exp $ */ /*- * Copyright (c) 2011 Reinoud Zandijk @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.12 2011/08/22 21:59:09 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.13 2011/08/23 00:52:33 jmcneill Exp $"); #include "opt_uvmhist.h" #include "opt_memsize.h" @@ -519,7 +519,7 @@ int pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, u_int flags) { printf("pmap_enter %p : v %p, p %p, prot %d, flags %d\n", (void *) pmap, (void *) va, (void *) pa, (int) prot, (int) flags); - return pmap_do_enter(pmap_kernel(), va, pa, prot, prot, 1); + return pmap_do_enter(pmap, va, pa, prot, flags, 0); } void