summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_ioctl.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-01-14 16:25:31 +0000
committerdg <dg@FreeBSD.org>1994-01-14 16:25:31 +0000
commitfff1da2aba8cb1d119866cd63038909870d3e54f (patch)
treea15ee00962453d82c88a74376825d44abe0188a9 /sys/scsi/scsi_ioctl.c
parent9f745bbfc3d7ee82008dd48471f5759b3b68d5f7 (diff)
downloadFreeBSD-src-fff1da2aba8cb1d119866cd63038909870d3e54f.zip
FreeBSD-src-fff1da2aba8cb1d119866cd63038909870d3e54f.tar.gz
"New" VM system from John Dyson & myself. For a run-down of the
major changes, see the log of any effected file in the sys/vm directory (swap_pager.c for instance).
Diffstat (limited to 'sys/scsi/scsi_ioctl.c')
-rw-r--r--sys/scsi/scsi_ioctl.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c
index 01bacf1..08d8a3a 100644
--- a/sys/scsi/scsi_ioctl.c
+++ b/sys/scsi/scsi_ioctl.c
@@ -6,7 +6,14 @@
*
*
*/
+#include <sys/types.h>
#include <sys/param.h>
+#include <machine/param.h>
+#include <vm/vm_statistics.h>
+#include <vm/vm_param.h>
+#include <vm/lock.h>
+#include <machine/pmap.h>
+#include <machine/vmparam.h>
#include "systm.h"
#include <sys/errno.h>
#include <sys/malloc.h>
@@ -238,7 +245,7 @@ errval scsi_do_ioctl(struct scsi_link *sc_link, int cmd, caddr_t addr, int f)
caddr_t d_addr;
int len;
- if((unsigned int)screq < (unsigned int)0xfe000000UL)
+ if((unsigned int)screq < (unsigned int)KERNBASE)
{
screq = malloc(sizeof(scsireq_t),M_TEMP,M_WAITOK);
bcopy(screq2,screq,sizeof(scsireq_t));
@@ -269,7 +276,7 @@ errval scsi_do_ioctl(struct scsi_link *sc_link, int cmd, caddr_t addr, int f)
ret = bp->b_error;
}
free(bp,M_TEMP);
- if((unsigned int)screq2 < (unsigned int)0xfe000000UL)
+ if((unsigned int)screq2 < (unsigned int)KERNBASE)
{
bcopy(screq,screq2,sizeof(scsireq_t));
free(screq,M_TEMP);
OpenPOWER on IntegriCloud