Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2005 21:25:03 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 80052 for review
Message-ID:  <200507122125.j6CLP3AX095852@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=80052

Change 80052 by peter@peter_melody on 2005/07/12 21:24:46

	oops, use tlb coherent mappings.

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/uio_machdep.c#6 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/uio_machdep.c#6 (text+ko) ====

@@ -95,7 +95,7 @@
 		page_offset = offset & PAGE_MASK;
 		cnt = min(cnt, PAGE_SIZE - page_offset);
 #ifdef NODMAP
-		pmap_kenter(kva, VM_PAGE_TO_PHYS(ma[offset >> PAGE_SHIFT]));
+		pmap_qenter(kva, &ma[offset >> PAGE_SHIFT], 1);
 		cp = (char *)kva + page_offset;
 #else
 		cp = (char *)PHYS_TO_DMAP(ma[offset >> PAGE_SHIFT]->phys_addr) +
@@ -122,7 +122,7 @@
 			break;
 		}
 #ifdef NODMAP
-		pmap_kremove(kva);
+		pmap_qremove(kva, 1);
 #endif
 		iov->iov_base = (char *)iov->iov_base + cnt;
 		iov->iov_len -= cnt;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507122125.j6CLP3AX095852>