summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-04-13 05:52:35 +0000
committerimp <imp@FreeBSD.org>2002-04-13 05:52:35 +0000
commita032457ac723bde64d1e857196ac7b14cc373c64 (patch)
tree7ba55a89aaf211e82508cc3ed506ea76cda8553e /sys/dev
parentb2dbe33cce9c249fdf2d0f3343572235a968eb60 (diff)
downloadFreeBSD-src-a032457ac723bde64d1e857196ac7b14cc373c64.zip
FreeBSD-src-a032457ac723bde64d1e857196ac7b14cc373c64.tar.gz
Fix an edge case wrt membase, but more changes needed
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index e71acee..9948ecb 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -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;
OpenPOWER on IntegriCloud