diff options
author | andrew <andrew@FreeBSD.org> | 2016-01-27 17:33:31 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-01-27 17:33:31 +0000 |
commit | 9893ec50e04c048e43ed5fe6017bfdfdea2cbdfe (patch) | |
tree | c94bdd0871bc23137b67bf5b3569a20c1f0b1b5d /contrib/llvm/lib/Support/Twine.cpp | |
parent | e7702ce3dffefab878927f99d7bc663b9869846c (diff) | |
download | FreeBSD-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