Skip to content

Commit

Permalink
[SPARC]: Encode I/O space into resource flags on sparc32.
Browse files Browse the repository at this point in the history
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: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 29, 2006
1 parent cf44bbc commit 95714e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ static void __init build_device_resources(struct of_device *op,
build_res:
memset(r, 0, sizeof(*r));
if (result != OF_BAD_ADDR) {
r->start = result;
r->start = result & 0xffffffff;
r->end = result + size - 1;
r->flags = flags;
r->flags = flags | ((result >> 32ULL) & 0xffUL);
} else {
r->start = ~0UL;
r->end = ~0UL;
Expand Down

0 comments on commit 95714e1

Please sign in to comment.