summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_base.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_base.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_base.c')
-rw-r--r--sys/scsi/scsi_base.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 2b4e9e9..39b1baf 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,12 +8,19 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.2 1993/11/25 06:30:58 davidg Exp $
+ * $Id: scsi_base.c,v 1.3 1993/12/19 00:54:50 wollman Exp $
*/
#define SPLSD splbio
#define ESUCCESS 0
+#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/buf.h>
#include <sys/uio.h>
@@ -411,7 +418,7 @@ scsi_scsi_cmd(sc_link, scsi_cmd, cmdlen, data_addr, datalen,
xs->resid = datalen;
xs->bp = bp;
/*XXX*/ /*use constant not magic number */
- if (datalen && ((caddr_t) data_addr < (caddr_t) 0xfe000000UL)) {
+ if (datalen && ((caddr_t) data_addr < (caddr_t) KERNBASE)) {
if (bp) {
printf("Data buffered space not in kernel context\n");
#ifdef SCSIDEBUG
@@ -439,7 +446,7 @@ scsi_scsi_cmd(sc_link, scsi_cmd, cmdlen, data_addr, datalen,
retry:
xs->error = XS_NOERROR;
#ifdef PARANOID
- if (datalen && ((caddr_t) xs->data < (caddr_t) 0xfe000000)) {
+ if (datalen && ((caddr_t) xs->data < (caddr_t) KERNBASE)) {
printf("It's still wrong!\n");
}
#endif /*PARANOID*/
OpenPOWER on IntegriCloud