summaryrefslogtreecommitdiffstats
path: root/sys/amd64/isa
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-04-02 20:43:25 +0000
committerache <ache@FreeBSD.org>1994-04-02 20:43:25 +0000
commit5721b2f2d544611d87d658edeabee3d5ae1456e2 (patch)
tree2eacb854a8d5e7d81f865ebbd6b68701399218e1 /sys/amd64/isa
parent0be7296a0e1b4c44e11315d7a84abbd8f3977ec3 (diff)
downloadFreeBSD-src-5721b2f2d544611d87d658edeabee3d5ae1456e2.zip
FreeBSD-src-5721b2f2d544611d87d658edeabee3d5ae1456e2.tar.gz
Change from Bruce:
isa_dmarangecheck() is off by one error. > ISARAM_END should be >= ISARAM_END. Only the first page above 16M was mishandled.
Diffstat (limited to 'sys/amd64/isa')
-rw-r--r--sys/amd64/isa/isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index 835aa98..42ab27d 100644
--- a/sys/amd64/isa/isa.c
+++ b/sys/amd64/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.14 1994/01/22 21:52:04 rgrimes Exp $
+ * $Id: isa.c,v 1.15 1994/04/02 07:00:46 davidg Exp $
*/
/*
@@ -530,7 +530,7 @@ isa_dmarangecheck(caddr_t va, unsigned length, unsigned chan) {
#define ISARAM_END RAM_END
if (phys == 0)
panic("isa_dmacheck: no physical page present");
- if (phys > ISARAM_END)
+ if (phys >= ISARAM_END)
return (1);
if (priorpage) {
if (priorpage + NBPG != phys)
OpenPOWER on IntegriCloud