Skip to content

Commit

Permalink
[PATCH] powerpc: Don't use KERNELBASE in add_memory()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jan 9, 2006
1 parent 0a498d9 commit e0fa93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e0fa93d

Please sign in to comment.