summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-01-09 18:19:49 +1100
committerPaul Mackerras <paulus@samba.org>2006-01-09 20:18:19 +1100
commite0fa93d6e6f0f36f39b813e561dbb890c58da58f (patch)
treed1ceb7ffc8742df26b7d2553ac6fb43cc64c4c8a /arch
parent0a498d96a3324c16add35da0435bc7c13b6c6f3f (diff)
downloadlinux-3.10-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.tar.gz
linux-3.10-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.tar.bz2
linux-3.10-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.zip
[PATCH] powerpc: Don't use KERNELBASE in add_memory()
In add_memory() we should be using __va() to get a virtual address. Spotted by Mike Kravetz. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 5e5bff5616a..15aac0d78df 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -125,7 +125,7 @@ int __devinit add_memory(u64 start, u64 size)
nid = hot_add_scn_to_nid(start);
pgdata = NODE_DATA(nid);
- start += KERNELBASE;
+ start = __va(start);
create_section_mapping(start, start + size);
/* this should work for most non-highmem platforms */