diff options
Diffstat (limited to 'src/arch/i386/core')
| -rw-r--r-- | src/arch/i386/core/pcibios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/core/pcibios.c b/src/arch/i386/core/pcibios.c index a4f61b71c..1c93e4be9 100644 --- a/src/arch/i386/core/pcibios.c +++ b/src/arch/i386/core/pcibios.c @@ -72,7 +72,7 @@ int pcibios_read ( struct pci_device *pci, uint32_t command, uint32_t *value ){ : "=a" ( status ), "=b" ( discard_b ), "=c" ( *value ), "=D" ( discard_D ) : "a" ( command >> 16 ), "D" ( command ), - "b" ( ( pci->bus << 8 ) | pci->devfn ) + "b" ( PCI_BUSDEVFN ( pci->bus, pci->devfn ) ) : "edx" ); return ( ( status >> 8 ) & 0xff ); @@ -98,7 +98,7 @@ int pcibios_write ( struct pci_device *pci, uint32_t command, uint32_t value ){ : "=a" ( status ), "=b" ( discard_b ), "=c" ( discard_c ), "=D" ( discard_D ) : "a" ( command >> 16 ), "D" ( command ), - "b" ( ( pci->bus << 8 ) | pci->devfn ), + "b" ( PCI_BUSDEVFN ( pci->bus, pci->devfn ) ), "c" ( value ) : "edx" ); |
