]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc: Don't use KERNELBASE in add_memory()
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 9 Jan 2006 07:19:49 +0000 (18:19 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 09:18:19 +0000 (20:18 +1100)
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>
arch/powerpc/mm/mem.c

index 5e5bff5616a823bcec4a5da75dd0ad60d28289ac..15aac0d78dfa7bd9c1a7de3ab6c4f15fdefe2e9a 100644 (file)
@@ -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 */