Home
last modified time | relevance | path

Searched hist:d878c9a932eae626aced58128357fc6155f88739 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/pci/
H A Dpci.cd878c9a932eae626aced58128357fc6155f88739 Mon Aug 11 22:09:28 UTC 2014 Stephen Warren <swarren@nvidia.com> pci: fix overflow in __pci_hose_bus_to_phys w/ large RAM

If a 32-bit system has 2GB of RAM, and the base address of that RAM is
2GB, then start+size will overflow a 32-bit value (to a value of 0).

To avoid such an overflow, convert __pci_hose_bus_to_phys() to calculate
the offset of a bus address into a PCI region, rather than comparing a
bus address against the end of a PCI region.

Signed-off-by: Stephen Warren <swarren@nvidia.com>