diff options
| author | Warner Losh <imp@FreeBSD.org> | 2002-11-14 05:22:37 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2002-11-14 05:22:37 +0000 |
| commit | a4bbd12ff1cb50aca790b4047a32a8e92c30e48f (patch) | |
| tree | cac62a5c189088e99d39d3bb2dbc048628a57ee2 /sys | |
| parent | b20360c8e61e495956ec9c2ad2c3abb310a0048f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/amd64/pci/pci_cfgreg.c | 2 | ||||
| -rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 2 | ||||
| -rw-r--r-- | sys/i386/pci/pci_pir.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c index fac5c32fdf8ef..830692222c14e 100644 --- a/sys/amd64/pci/pci_cfgreg.c +++ b/sys/amd64/pci/pci_cfgreg.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index fac5c32fdf8ef..830692222c14e 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index fac5c32fdf8ef..830692222c14e 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) |
