From: David S. Miller Date: Fri, 30 Jun 2006 02:58:28 +0000 (-0700) Subject: [SPARC64]: Mask out top 8-bits in physical address when building resources. X-Git-Tag: v2.6.18-rc1~251^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1815aed5edbc79c6f3de6f022efb0af30dd0a70d;p=platform%2Fkernel%2Flinux-exynos.git [SPARC64]: Mask out top 8-bits in physical address when building resources. 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 --- diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 3670dc8..169b017 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c @@ -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;