cardbus io reservation
parent
b20ed3c1f5
commit
656762ae98
|
@ -238,7 +238,7 @@ ioalloc(int port, int size, int align, char *tag)
|
||||||
m = *l;
|
m = *l;
|
||||||
if(m->end <= port)
|
if(m->end <= port)
|
||||||
continue;
|
continue;
|
||||||
if(m->reserved && m->start == port && m->end == port + size) {
|
if(m->reserved && m->start == port && m->end >= port + size) {
|
||||||
m->reserved = 0;
|
m->reserved = 0;
|
||||||
unlock(&iomap);
|
unlock(&iomap);
|
||||||
return m->start;
|
return m->start;
|
||||||
|
|
Loading…
Reference in New Issue