summaryrefslogtreecommitdiff
path: root/sys/dev/ccd.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-27 04:46:00 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-27 04:46:00 +0000
commit33c5053a3b68247342e963b6b0bf7e5a02533658 (patch)
treed583cdb9dad31d57f79662d6d1ffb12531b99f5a /sys/dev/ccd.c
parent5735641be7d63cc0eda40d031cada993a637808e (diff)
zap old vm
Diffstat (limited to 'sys/dev/ccd.c')
-rw-r--r--sys/dev/ccd.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c
index 78069096bd8..beec21881ae 100644
--- a/sys/dev/ccd.c
+++ b/sys/dev/ccd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccd.c,v 1.42 2001/05/05 20:56:58 art Exp $ */
+/* $OpenBSD: ccd.c,v 1.43 2001/06/27 04:45:56 art Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
@@ -119,9 +119,7 @@
#include <vm/vm.h>
#include <vm/vm_kern.h>
-#if defined(UVM)
#include <uvm/uvm_extern.h>
-#endif
#ifdef __GNUC__
#define INLINE static __inline
@@ -933,13 +931,8 @@ ccdbuffer(cs, bp, bn, addr, bcount, cbpp, old_io)
nbp->b_data = addr;
else {
do {
-#if defined(UVM)
nbp->b_data = (caddr_t) uvm_km_valloc(ccdmap,
bp->b_bcount);
-#else
- nbp->b_data = (caddr_t) kmem_alloc_pageable(
- ccdmap, bp->b_bcount);
-#endif
/*
* XXX Instead of sleeping, we might revert
@@ -1090,11 +1083,7 @@ ccdiodone(vbp)
off += cbp->cb_sg[i].cs_sglen;
}
-#if defined(UVM)
uvm_km_free(ccdmap, (vaddr_t)vbp->b_data, count);
-#else
- kmem_free(ccdmap, (vaddr_t)vbp->b_data, count);
-#endif
if (ccd_need_kvm) {
ccd_need_kvm = 0;
wakeup(ccdmap);
@@ -1309,13 +1298,8 @@ ccdioctl(dev, cmd, data, flag, p)
* XXX doable via a freelist implementation though.
*/
if (!ccdmap && !(ccd.ccd_flags & CCDF_OLD))
-#if defined(UVM)
ccdmap = uvm_km_suballoc(kernel_map, &min, &max,
CCD_CLUSTERS * MAXBSIZE, FALSE, FALSE, NULL);
-#else
- ccdmap = kmem_suballoc(kernel_map, &min, &max,
- CCD_CLUSTERS * MAXBSIZE, FALSE);
-#endif
/* Attach the disk. */
cs->sc_dkdev.dk_name = cs->sc_xname;