summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-06-30 04:58:28 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-30 23:13:36 +0200
commit1815aed5edbc79c6f3de6f022efb0af30dd0a70d (patch)
treee614bc9663061cca90665d433ab46c3ccbf335ae /arch
parent[SERIAL] sunsu: Missing return statement in su_probe(). (diff)
downloadlinux-1815aed5edbc79c6f3de6f022efb0af30dd0a70d.tar.xz
linux-1815aed5edbc79c6f3de6f022efb0af30dd0a70d.zip
[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 <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/kernel/of_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index 3670dc8a7d5f..169b017eec0b 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;