From 4327989a063bcbb6e7a5e830d7f931cab05088d6 Mon Sep 17 00:00:00 2001 From: matthew Date: Tue, 20 Jul 2010 09:06:38 +0000 Subject: [PATCH] Mark a DMA accessible malloc for later correction. This is potentially up to 64KB, so we'll need something fancier than dma_alloc(). --- sys/crypto/cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index b76218bc09d..6b81461cde7 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.71 2010/04/20 22:05:41 tedu Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.72 2010/07/20 09:06:38 matthew Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -326,7 +326,7 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p) cse->uio.uio_iov = cse->iovec; bzero(&cse->iovec, sizeof(cse->iovec)); cse->uio.uio_iov[0].iov_len = cop->len; - cse->uio.uio_iov[0].iov_base = malloc(cop->len, M_XDATA, M_WAITOK); + cse->uio.uio_iov[0].iov_base = malloc(cop->len, M_XDATA, M_WAITOK); /* XXX dma accessible */ cse->uio.uio_resid = cse->uio.uio_iov[0].iov_len; /* number of requests, not logical and */ -- 2.20.1