浏览代码

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

being noticed...
tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
fdf62528ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/arch/i386/include/pcibios.h

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

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 */

正在加载...
取消
保存