]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
It's astonishing how long really fundamental bugs can survive without
authorMichael Brown <mcb30@etherboot.org>
Thu, 8 Jun 2006 15:06:09 +0000 (15:06 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 8 Jun 2006 15:06:09 +0000 (15:06 +0000)
being noticed...

src/arch/i386/include/pcibios.h

index dcbffedce854de6d98ed5a54db863120c8e25e72..3d08d135b80fc5c00613a36d317982ff6a751837 100644 (file)
@@ -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 */