diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-01-09 18:19:49 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 20:18:19 +1100 |
commit | e0fa93d6e6f0f36f39b813e561dbb890c58da58f (patch) | |
tree | d1ceb7ffc8742df26b7d2553ac6fb43cc64c4c8a /arch/powerpc | |
parent | 0a498d96a3324c16add35da0435bc7c13b6c6f3f (diff) | |
download | kernel_samsung_tuna-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.zip kernel_samsung_tuna-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.tar.gz kernel_samsung_tuna-e0fa93d6e6f0f36f39b813e561dbb890c58da58f.tar.bz2 |
[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/powerpc')
-rw-r--r-- | arch/powerpc/mm/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 5e5bff5..15aac0d 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 */ |