summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/dma.c')
-rw-r--r--sys/arch/sparc/dev/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/dma.c b/sys/arch/sparc/dev/dma.c
index 0ddb4505034..937429112ae 100644
--- a/sys/arch/sparc/dev/dma.c
+++ b/sys/arch/sparc/dev/dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma.c,v 1.15 1999/07/09 21:34:44 art Exp $ */
+/* $OpenBSD: dma.c,v 1.16 1999/09/10 23:32:02 art Exp $ */
/* $NetBSD: dma.c,v 1.46 1997/08/27 11:24:16 bouyer Exp $ */
/*
@@ -468,7 +468,7 @@ dma_setup(sc, addr, len, datain, dmasize)
long bcnt = sc->sc_dmasize;
long eaddr = bcnt + (long)*sc->sc_dmaaddr;
if ((eaddr & PGOFSET) != 0)
- bcnt = roundup(bcnt, NBPG);
+ bcnt = round_page(bcnt);
DMACNT(sc) = bcnt;
}
/* Setup DMA control register */