From a71fe642643f1c61fc2a06ec1e3ba42275a8a8b7 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sun, 16 Apr 2006 23:39:44 +0000 Subject: 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. --- sys/dev/ic/mfi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 * @@ -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; -- cgit v1.2.3