diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2005-05-31 21:33:33 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2005-05-31 21:33:33 +0000 |
| commit | 40811086431d706013d2ced576754d43be888ea0 (patch) | |
| tree | 705b27c39a4881840686161eb163591eb7f62319 /sys/dev/pci | |
| parent | 71ed2c3c59d4eb1f26795d5bd9ecd71a0b24ac27 (diff) | |
Notes
Diffstat (limited to 'sys/dev/pci')
| -rw-r--r-- | sys/dev/pci/pci.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 3874af6d0726c..d8042a3827482 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -823,6 +823,13 @@ pci_add_map(device_t pcib, device_t bus, device_t dev, } /* + * If base is 0, then we have problems. It is best to ignore + * such entires for the moment. These will be allocated later if + * the driver specifically requests them. + */ + if (base == 0) + return 1; + /* * This code theoretically does the right thing, but has * undesirable side effects in some cases where peripherals * respond oddly to having these bits enabled. Let the user @@ -847,13 +854,6 @@ pci_add_map(device_t pcib, device_t bus, device_t dev, if (type == SYS_RES_MEMORY && !pci_memen(pcib, b, s, f)) return (1); } - /* - * If base is 0, then we have problems. It is best to ignore - * such entires for the moment. These will be allocated later if - * the driver specifically requests them. - */ - if (base == 0) - return 1; start = base; end = base + (1 << ln2size) - 1; |
