summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/Twine.cpp
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-01-27 17:33:31 +0000
committerandrew <andrew@FreeBSD.org>2016-01-27 17:33:31 +0000
commit9893ec50e04c048e43ed5fe6017bfdfdea2cbdfe (patch)
treec94bdd0871bc23137b67bf5b3569a20c1f0b1b5d /contrib/llvm/lib/Support/Twine.cpp
parente7702ce3dffefab878927f99d7bc663b9869846c (diff)
downloadFreeBSD-src-9893ec50e04c048e43ed5fe6017bfdfdea2cbdfe.zip
FreeBSD-src-9893ec50e04c048e43ed5fe6017bfdfdea2cbdfe.tar.gz
When finding the physical address of a device allow intermediate addresses
to be 64-bit on 32-bit architectures. It is not uncommon for device trees to use the upper 32-bits to store what effectively is an index into the parent ranges property. In this case, when running with a 32-bit bus_addr_t and bus_size_t, we would previously truncate the address, this may then incorrectly match the wrong range, and return the wrong address. Tested by: bz (earlier version)
Diffstat (limited to 'contrib/llvm/lib/Support/Twine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud