diff options
| author | Michael Brown | 2006-06-08 17:06:09 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-06-08 17:06:09 +0200 |
| commit | fdf62528ca46f6e7e9bc75207e8c49f60e510c07 (patch) | |
| tree | fd62787b7c665237c5788d3f1a7ff0fd70b53483 /src/arch | |
| parent | Fix some remarkably obvious mistakes in pcidirect.h (diff) | |
| download | ipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.tar.gz ipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.tar.xz ipxe-fdf62528ca46f6e7e9bc75207e8c49f60e510c07.zip | |
It's astonishing how long really fundamental bugs can survive without
being noticed...
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/include/pcibios.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/include/pcibios.h b/src/arch/i386/include/pcibios.h index dcbffedce..3d08d135b 100644 --- a/src/arch/i386/include/pcibios.h +++ b/src/arch/i386/include/pcibios.h @@ -102,7 +102,7 @@ pcibios_write_config_byte ( struct pci_device *pci, unsigned int where, static inline __attribute__ (( always_inline )) int pcibios_write_config_word ( struct pci_device *pci, unsigned int where, uint16_t value ) { - return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value ); + return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_WORD | where, value ); } /** @@ -116,7 +116,7 @@ pcibios_write_config_word ( struct pci_device *pci, unsigned int where, static inline __attribute__ (( always_inline )) int pcibios_write_config_dword ( struct pci_device *pci, unsigned int where, uint32_t value ) { - return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value ); + return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_DWORD | where, value); } #endif /* _PCIBIOS_H */ |
