• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂056c3c94f862cf04ac7c25a4df9e1df9538f9893 (tree)
時間2016-04-17 18:04:10
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

pci: SH address space fix.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Change Summary

差異

--- a/drivers/pci/pci_common.c
+++ b/drivers/pci/pci_common.c
@@ -224,6 +224,12 @@ int __pci_hose_phys_to_bus(struct pci_controller *hose,
224224 if (res->flags & skip_mask)
225225 continue;
226226
227+#if defined(CONFIG_SH4_PCI)
228+ /* from Logic address to Physical address */
229+ if( (phys_addr & 0xF0000000) == 0x80000000)
230+ phys_addr &= ~0x80000000;
231+#endif
232+
227233 bus_addr = phys_addr - res->phys_start + res->bus_start;
228234
229235 if (bus_addr >= res->bus_start &&