[SPARC64]: Mask out top 8-bits in physical address when building resources.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 30 Jun 2006 02:58:28 +0000 (19:58 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 30 Jun 2006 21:13:36 +0000 (14:13 -0700)
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>
arch/sparc64/kernel/of_device.c

index 3670dc8a7d5f2eace36735f87c1a6e181b62207a..169b017eec0b6c393f17096206db914dbff21ac2 100644 (file)
@@ -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;