summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-03 21:01:54 +0000
committerphk <phk@FreeBSD.org>1996-05-03 21:01:54 +0000
commit5d01dc3d502f27448cc5a6c62c8f103d25ac3df0 (patch)
tree6e409b4bdf1f55b895a65877ef5486cfc5442060 /sys/scsi
parent6ed0fd2b8bab9bd3b84ab82f273df31ce328c87d (diff)
downloadFreeBSD-src-5d01dc3d502f27448cc5a6c62c8f103d25ac3df0.zip
FreeBSD-src-5d01dc3d502f27448cc5a6c62c8f103d25ac3df0.tar.gz
Another sweep over the pmap/vm macros, this time with more focus on
the usage. I'm not satisfied with the naming, but now at least there is less bogus stuff around.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index af6c1ff..e0745b5 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.36 1996/03/10 07:13:07 gibbs Exp $
+ * $Id: scsi_base.c,v 1.37 1996/03/31 03:19:06 gibbs Exp $
*/
#include "opt_bounce.h"
@@ -515,7 +515,7 @@ scsi_scsi_cmd(sc_link, scsi_cmd, cmdlen, data_addr, datalen,
goto bad;
}
#ifdef BOUNCE_BUFFERS
- xs->data = (caddr_t) vm_bounce_kva_alloc( (datalen + PAGE_SIZE - 1)/PAGE_SIZE);
+ xs->data = (caddr_t) vm_bounce_kva_alloc(btoc(datalen));
#else
xs->data = malloc(datalen, M_TEMP, M_WAITOK);
#endif
@@ -604,7 +604,7 @@ retry:
}
#ifdef BOUNCE_BUFFERS
vm_bounce_kva_alloc_free((vm_offset_t) xs->data,
- (datalen + PAGE_SIZE - 1)/PAGE_SIZE);
+ btoc(datalen));
#else
free(xs->data, M_TEMP);
#endif
OpenPOWER on IntegriCloud