summaryrefslogtreecommitdiffstats
path: root/sys/dev/eisa
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-24 03:08:46 +0000
committerpeter <peter@FreeBSD.org>1999-05-24 03:08:46 +0000
commite8f9d33b76b0d86eff86945749b1b48d16f3e7c0 (patch)
tree01c9eac7717b6b7d3ad302c3f5b6e1fab612a93e /sys/dev/eisa
parent3bf927352fffeb5e6ae4735aa160cc4e5491b5ce (diff)
downloadFreeBSD-src-e8f9d33b76b0d86eff86945749b1b48d16f3e7c0.zip
FreeBSD-src-e8f9d33b76b0d86eff86945749b1b48d16f3e7c0.tar.gz
Fix a [start,end] vs [start,count] botch that corrupted the resource
manager and prevented IOPort allocation beyond the first EISA slot from working. subr_rman.c should have trapped this on the way into the system rather than tripping over the wreckage. Head banged into wall repeatedly by: "Matthew N. Dodd" <winter@jurai.net>
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r--sys/dev/eisa/eisaconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c
index 464ebcf..40f57ab 100644
--- a/sys/dev/eisa/eisaconf.c
+++ b/sys/dev/eisa/eisaconf.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: eisaconf.c,v 1.43 1999/05/08 21:59:20 dfr Exp $
+ * $Id: eisaconf.c,v 1.44 1999/05/18 21:03:30 peter Exp $
*/
#include "opt_eisa.h"
@@ -310,7 +310,7 @@ eisa_alloc_resource(device_t dev, device_t child, int type, int *rid,
return 0;
start = resv->addr;
- end = resv->size - 1;
+ end = resv->addr + (resv->size - 1);
count = resv->size;
rvp = &resv->res;
}
@@ -325,7 +325,7 @@ eisa_alloc_resource(device_t dev, device_t child, int type, int *rid,
return 0;
start = resv->addr;
- end = resv->size - 1;
+ end = resv->addr + (resv->size - 1);
count = resv->size;
rvp = &resv->res;
}
OpenPOWER on IntegriCloud