Browse Source

It's astonishing how long really fundamental bugs can survive without

being noticed...
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
fdf62528ca
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/arch/i386/include/pcibios.h

+ 2
- 2
src/arch/i386/include/pcibios.h View File

102
 static inline __attribute__ (( always_inline )) int
102
 static inline __attribute__ (( always_inline )) int
103
 pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
103
 pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
104
 			    uint16_t value ) {
104
 			    uint16_t value ) {
105
-	return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value );
105
+	return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_WORD | where, value );
106
 }
106
 }
107
 
107
 
108
 /**
108
 /**
116
 static inline __attribute__ (( always_inline )) int
116
 static inline __attribute__ (( always_inline )) int
117
 pcibios_write_config_dword ( struct pci_device *pci, unsigned int where,
117
 pcibios_write_config_dword ( struct pci_device *pci, unsigned int where,
118
 			     uint32_t value ) {
118
 			     uint32_t value ) {
119
-	return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_BYTE | where, value );
119
+	return pcibios_write ( pci, PCIBIOS_WRITE_CONFIG_DWORD | where, value);
120
 }
120
 }
121
 
121
 
122
 #endif /* _PCIBIOS_H */
122
 #endif /* _PCIBIOS_H */

Loading…
Cancel
Save