Commit 95714e12 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC]: Encode I/O space into resource flags on sparc32.

On sparc64 we don't need to do this because the resource
values are large enough to encode the full physical address.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf44bbc2
...@@ -488,9 +488,9 @@ static void __init build_device_resources(struct of_device *op, ...@@ -488,9 +488,9 @@ static void __init build_device_resources(struct of_device *op,
build_res: build_res:
memset(r, 0, sizeof(*r)); memset(r, 0, sizeof(*r));
if (result != OF_BAD_ADDR) { if (result != OF_BAD_ADDR) {
r->start = result; r->start = result & 0xffffffff;
r->end = result + size - 1; r->end = result + size - 1;
r->flags = flags; r->flags = flags | ((result >> 32ULL) & 0xffUL);
} else { } else {
r->start = ~0UL; r->start = ~0UL;
r->end = ~0UL; r->end = ~0UL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment