瀏覽代碼

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

being noticed...
tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
fdf62528ca
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/arch/i386/include/pcibios.h

+ 2
- 2
src/arch/i386/include/pcibios.h 查看文件

@@ -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…
取消
儲存