diff options
author | nyan <nyan@FreeBSD.org> | 2000-09-07 14:43:00 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-09-07 14:43:00 +0000 |
commit | 564829fb8395cc2f8cedd273ef0e9e988e80d3e5 (patch) | |
tree | 7b545989ec263acb1a1c7b81169d150d1d87056b /sys/amd64/isa | |
parent | 06674277f3ff06a552adbe5f4095448e58383796 (diff) | |
download | FreeBSD-src-564829fb8395cc2f8cedd273ef0e9e988e80d3e5.zip FreeBSD-src-564829fb8395cc2f8cedd273ef0e9e988e80d3e5.tar.gz |
Don't assume that address of I/O address table increase (PC-98 only).
Pointed out by: Tomokazu HARADA <tkhara@osk4.3web.ne.jp>
Diffstat (limited to 'sys/amd64/isa')
-rw-r--r-- | sys/amd64/isa/isa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c index 9c96c4c..ab9427d 100644 --- a/sys/amd64/isa/isa.c +++ b/sys/amd64/isa/isa.c @@ -151,7 +151,7 @@ isa_alloc_resourcev(device_t child, int type, int *rid, linear_cnt = count; ressz = 1; for (i = 1; i < count; ++i) { - if (res[i] > res[i - 1] + 1) { + if (res[i] != res[i - 1] + 1) { if (i < linear_cnt) linear_cnt = i; ++ressz; @@ -172,7 +172,7 @@ isa_alloc_resourcev(device_t child, int type, int *rid, for (i = linear_cnt, k = 1; i < count; i = j, k++) { for (j = i + 1; j < count; j++) { - if (res[j] > res[j - 1] + 1) + if (res[j] != res[j - 1] + 1) break; } bsrid = *rid + k; |