aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-05-11 11:03:18 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-05-11 11:03:18 +0000
commit8cb43731419823c76deec4e0793d1bb6967737bd (patch)
tree2101da4af4e71bc0d6f9cebac4f25e78dff487a8 /sys/dev/dpt
parent3458ae679d5de1accf48ec81f18b97d139d7ba3d (diff)
Notes
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_control.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c
index b28fb672d1cfc..e117b998b3981 100644
--- a/sys/dev/dpt/dpt_control.c
+++ b/sys/dev/dpt/dpt_control.c
@@ -36,7 +36,7 @@
* future.
*/
-#ident "$Id: dpt_control.c,v 1.9 1998/09/15 08:33:31 gibbs Exp $"
+#ident "$Id: dpt_control.c,v 1.10 1998/12/04 22:54:45 archie Exp $"
#include "opt_dpt.h"
@@ -150,6 +150,7 @@ dpt_physmap(u_int32_t req_paddr, vm_size_t req_size)
if (va == (vm_offset_t) 0)
return (va);
+ size += PAGE_SIZE;
for (ndx = 0; ndx < size; ndx += PAGE_SIZE) {
pmap_kenter(va + ndx, paddr + ndx);
invltlb();
@@ -161,7 +162,7 @@ dpt_physmap(u_int32_t req_paddr, vm_size_t req_size)
/*
* Release virtual space allocated by physmap We ASSUME that the correct
- * srart address and the correct LENGTH are given.
+ * start address and the correct LENGTH are given.
*
* Disaster will follow if these assumptions are false!
*/
@@ -419,6 +420,7 @@ dpt_open(dev_t dev, int flags, int fmt, struct proc * p)
printf("dpt%d: Failed to obtain an I/O buffer\n",
minor_no & ~SCSI_CONTROL_MASK);
#endif
+ splx(ospl);
return (EINVAL);
}
}