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,7 +102,7 @@ pcibios_write_config_byte ( struct pci_device *pci, unsigned int where,
102 102
 static inline __attribute__ (( always_inline )) int
103 103
 pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
104 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,7 +116,7 @@ pcibios_write_config_word ( struct pci_device *pci, unsigned int where,
116 116
 static inline __attribute__ (( always_inline )) int
117 117
 pcibios_write_config_dword ( struct pci_device *pci, unsigned int where,
118 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 122
 #endif /* _PCIBIOS_H */

Loading…
Cancel
Save