From 656762ae986c830e205ff8fed5d3455f584f0deb Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 1 May 2012 03:35:15 +0200 Subject: cardbus io reservation --- sys/src/9/pc/devarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/pc/devarch.c b/sys/src/9/pc/devarch.c index c68fc4d1a..5c714984b 100644 --- a/sys/src/9/pc/devarch.c +++ b/sys/src/9/pc/devarch.c @@ -238,7 +238,7 @@ ioalloc(int port, int size, int align, char *tag) m = *l; if(m->end <= port) continue; - if(m->reserved && m->start == port && m->end == port + size) { + if(m->reserved && m->start == port && m->end >= port + size) { m->reserved = 0; unlock(&iomap); return m->start; -- cgit v1.2.3