summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/powerpc/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/powerpc/powerpc/dma.c')
-rw-r--r--sys/arch/powerpc/powerpc/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/dma.c b/sys/arch/powerpc/powerpc/dma.c
index b6b1875fd61..cd417021b47 100644
--- a/sys/arch/powerpc/powerpc/dma.c
+++ b/sys/arch/powerpc/powerpc/dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma.c,v 1.9 2001/08/01 23:53:09 pvalchev Exp $ */
+/* $OpenBSD: dma.c,v 1.10 2001/08/18 21:59:48 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -167,7 +167,7 @@ _dmamap_load(t, map, buf, buflen, p, flags)
/*
* Compute the segment size, and adjust counts.
*/
- sgsize = NBPG - ((u_long)vaddr & PGOFSET);
+ sgsize = PAGE_SIZE - ((u_long)vaddr & PGOFSET);
if (buflen < sgsize)
sgsize = buflen;
@@ -370,7 +370,7 @@ _dmamem_map(t, segs, nsegs, size, kvap, flags)
for (curseg = 0; curseg < nsegs; curseg++) {
for (addr = segs[curseg].ds_addr;
addr < (segs[curseg].ds_addr + segs[curseg].ds_len);
- addr += NBPG, va += NBPG, size -= NBPG) {
+ addr += PAGE_SIZE, va += PAGE_SIZE, size -= PAGE_SIZE) {
if (size == 0)
panic("_bus_dmamem_map: size botch");
pmap_enter(pmap_kernel(), va, addr,