Skip to content

Commit

Permalink
[SPARC64]: Mask out top 8-bits in physical address when building reso…
Browse files Browse the repository at this point in the history
…urces.

These top 8-bits are supposed to be ignored in the ranges and
top-level reg properties on this platform.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 30, 2006
1 parent a1d22d3 commit 1815aed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ static void __init build_device_resources(struct of_device *op,
build_res:
memset(r, 0, sizeof(*r));
if (result != OF_BAD_ADDR) {
if (tlb_type == hypervisor)
result &= 0x0fffffffffffffffUL;

r->start = result;
r->end = result + size - 1;
r->flags = flags;
Expand Down

0 comments on commit 1815aed

Please sign in to comment.