From f3c74253b0a06f1d4ad6febfe177dc6a47a1f547 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 5 Mar 2001 16:43:34 +0000 Subject: [PATCH] Fix `flags' argument to pmap_enter(). --- sys/arch/sparc/sparc/iommu.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/arch/sparc/sparc/iommu.c b/sys/arch/sparc/sparc/iommu.c index 9479b672f004..6b537febfb62 100644 --- a/sys/arch/sparc/sparc/iommu.c +++ b/sys/arch/sparc/sparc/iommu.c @@ -1,4 +1,4 @@ -/* $NetBSD: iommu.c,v 1.50 2000/07/22 21:23:05 pk Exp $ */ +/* $NetBSD: iommu.c,v 1.51 2001/03/05 16:43:34 pk Exp $ */ /* * Copyright (c) 1996 @@ -245,8 +245,7 @@ iommu_attach(parent, self, aux) for (; m != NULL; m = TAILQ_NEXT(m,pageq)) { paddr_t pa = VM_PAGE_TO_PHYS(m); pmap_enter(pmap_kernel(), va, pa | PMAP_NC, - VM_PROT_READ|VM_PROT_WRITE, - VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED); + VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED); va += NBPG; } @@ -800,8 +799,7 @@ iommu_dmamem_map(t, segs, nsegs, size, kvap, flags) addr = VM_PAGE_TO_PHYS(m); pmap_enter(pmap_kernel(), va, addr | cbit, - VM_PROT_READ | VM_PROT_WRITE, - VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED); + VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED); #if 0 if (flags & BUS_DMA_COHERENT) /* XXX */;