diff options
author | 2016-10-05 07:44:24 +0000 | |
---|---|---|
committer | 2016-10-05 07:44:24 +0000 | |
commit | ed541e3a3388d9d16c92bacf4e996fbd317100a0 (patch) | |
tree | 9e4295de9971bbc0e05159a9e22bf15e058ed4c4 /sys/net/route.c | |
parent | Let bgpd announce routes based on a route-label. (diff) | |
download | wireguard-openbsd-ed541e3a3388d9d16c92bacf4e996fbd317100a0.tar.xz wireguard-openbsd-ed541e3a3388d9d16c92bacf4e996fbd317100a0.zip |
Some device trees use 64-bit intermediate virtual addresses. This
means that even though the hardware in the end never leaves the 32-bit
address space, some addresses used solely in the device tree can be
bigger than 32-bit. As bus_space_map(9) takes addresses of size
bus_addr_t, which is 32-bit on ARMv7, we cannot pass those virtual
addresses to the parent bus, even though it will be mapped back into a
32-bit address in the end. To work around this, make bus_space_map(9)
take a 64-bit address. Since this is implemented as a macro and
function pointer we can safely do that without harming any other
architecture.
ok kettenis@ deraadt@
Diffstat (limited to 'sys/net/route.c')
0 files changed, 0 insertions, 0 deletions