summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-04-16 23:39:44 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-04-16 23:39:44 +0000
commita71fe642643f1c61fc2a06ec1e3ba42275a8a8b7 (patch)
tree3108f5e57dd6a074d85fd974137f4498bd1f5391
parent6a8c6d90cb7e2ec2e07077d538ba6a2a272c8cf0 (diff)
Oops, make mfi_allocmem always use 64 byte boundaries since frames have to
have that alignment. It doesn't matter for the other consumers of the function.
-rw-r--r--sys/dev/ic/mfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index 8fa08bb4005..05ca2ac2323 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.14 2006/04/16 23:35:43 marco Exp $ */
+/* $OpenBSD: mfi.c,v 1.15 2006/04/16 23:39:43 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -144,7 +144,7 @@ mfi_allocmem(struct mfi_softc *sc, size_t size)
memset(mm, 0, sizeof(struct mfi_mem));
mm->am_size = size;
- if (bus_dmamap_create(sc->sc_dmat, size, 1, size, 0,
+ if (bus_dmamap_create(sc->sc_dmat, size, 1, size, 64,
BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &mm->am_map) != 0)
goto amfree;