Change from Bruce:
isa_dmarangecheck() is off by one error. > ISARAM_END should be >= ISARAM_END. Only the first page above 16M was mishandled.
This commit is contained in:
parent
83c4d4f67a
commit
e42b7b4096
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1323
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user