summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-03-16 20:31:46 +0000
committerimp <imp@FreeBSD.org>2005-03-16 20:31:46 +0000
commitc5fda0f2c7285bd14eda7aa2697ef3317c538bd4 (patch)
tree6e64adbb241d20b88a669671fca8ad1037d852cd /sys
parent1a521474bdd49fa02ebac0d51455b6e41430b7fd (diff)
downloadFreeBSD-src-c5fda0f2c7285bd14eda7aa2697ef3317c538bd4.zip
FreeBSD-src-c5fda0f2c7285bd14eda7aa2697ef3317c538bd4.tar.gz
bus_alloc_resource must obey the same rules as
rman_resource_resournce_bound wrt end parameter. The end parameter here was the same as the start. However, it should be start + count - 1, so make it that instead.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/npx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 6db8970..040bd02 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -267,7 +267,7 @@ npx_probe(dev)
GSEL(GCODE_SEL, SEL_KPL));
ioport_rid = 0;
ioport_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &ioport_rid,
- IO_NPX, IO_NPX, IO_NPXSIZE, RF_ACTIVE);
+ IO_NPX, IO_NPX + IO_NPXSIZE - 1, IO_NPXSIZE, RF_ACTIVE);
if (ioport_res == NULL)
panic("npx: can't get ports");
#ifdef PC98
OpenPOWER on IntegriCloud