Fix an edge case wrt membase, but more changes needed

This commit is contained in:
imp 2002-04-13 05:52:35 +00:00
parent 11250ba171
commit de6908b1b6

View File

@ -345,7 +345,7 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
case SYS_RES_MEMORY:
if (!pcib_is_isa_mem(start)) {
#ifndef PCI_ALLOW_UNSUPPORTED_IO_RANGE
if (start < sc->membase && end > sc->membase)
if (start < sc->membase && end >= sc->membase)
start = sc->membase;
if (end > sc->memlimit)
end = sc->memlimit;