mirror of https://github.com/ipxe/ipxe.git
It's astonishing how long really fundamental bugs can survive without
being noticed...pull/1/head
parent
191a906338
commit
fdf62528ca
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue