From 29d1c579fd4df8ffea91a9d829dafd05760d3499 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 30 Nov 1995 23:03:47 +0000 Subject: properly catch cases where buffers are on the kstack, from hannken@eis.cs.tu-bs.de --- sys/dev/isa/aha.c | 3 +-- sys/dev/isa/aha1542.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c index 1049d677dfe..323bdd5d285 100644 --- a/sys/dev/isa/aha.c +++ b/sys/dev/isa/aha.c @@ -78,8 +78,7 @@ #ifdef i386 #include #define VOLATILE_XS(xs) \ - ((xs)->datalen > 0 && \ - ((vm_offset_t)((xs)->data) < VM_MIN_KERNEL_ADDRESS) && \ + ((xs)->datalen > 0 && (xs)->bp == NULL && \ ((xs)->flags & SCSI_POLL) == 0) #else #define VOLATILE_XS(xs) 0 diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index 1049d677dfe..323bdd5d285 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -78,8 +78,7 @@ #ifdef i386 #include #define VOLATILE_XS(xs) \ - ((xs)->datalen > 0 && \ - ((vm_offset_t)((xs)->data) < VM_MIN_KERNEL_ADDRESS) && \ + ((xs)->datalen > 0 && (xs)->bp == NULL && \ ((xs)->flags & SCSI_POLL) == 0) #else #define VOLATILE_XS(xs) 0 -- cgit v1.2.3