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 b2dbe33cce
commit a032457ac7

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;