瀏覽代碼

[pci] Enable memory cycles in adjust_pci_device()

adjust_pci_device() has historically enabled bus-mastering and I/O
cycles, but has never previously needed to enable memory cycles.  Some
EFI systems seem not to enable memory cycles by default, so add that
to the list of PCI command register bits that we force on.
tags/v0.9.7
Michael Brown 16 年之前
父節點
當前提交
1941c933f8
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/drivers/bus/pci.c

+ 2
- 1
src/drivers/bus/pci.c 查看文件

@@ -148,7 +148,8 @@ void adjust_pci_device ( struct pci_device *pci ) {
148 148
 	unsigned char pci_latency;
149 149
 
150 150
 	pci_read_config_word ( pci, PCI_COMMAND, &pci_command );
151
-	new_command = pci_command | PCI_COMMAND_MASTER | PCI_COMMAND_IO;
151
+	new_command = ( pci_command | PCI_COMMAND_MASTER |
152
+			PCI_COMMAND_MEM | PCI_COMMAND_IO );
152 153
 	if ( pci_command != new_command ) {
153 154
 		DBG ( "PCI BIOS has not enabled device %02x:%02x.%x! "
154 155
 		      "Updating PCI command %04x->%04x\n", pci->bus,

Loading…
取消
儲存