diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-24 15:19:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:10:33 -0400 |
commit | 3a58a2a6c879b2e47daafd6e641661c50ac9da5a (patch) | |
tree | 40291091c6114692edcc34beae5d648382b651da /arch/x86/mm/discontig_32.c | |
parent | cfb0e53b05402f1ce65053677409a819c1798d34 (diff) |
x86: introduce init_memory_mapping for 32bit #3
move kva related early backto initmem_init for numa32
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/discontig_32.c')
-rw-r--r-- | arch/x86/mm/discontig_32.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/mm/discontig_32.c b/arch/x86/mm/discontig_32.c index f5ae31935ca8..42484d446d06 100644 --- a/arch/x86/mm/discontig_32.c +++ b/arch/x86/mm/discontig_32.c | |||
@@ -200,7 +200,7 @@ void *alloc_remap(int nid, unsigned long size) | |||
200 | return allocation; | 200 | return allocation; |
201 | } | 201 | } |
202 | 202 | ||
203 | void __init remap_numa_kva(void) | 203 | static void __init remap_numa_kva(void) |
204 | { | 204 | { |
205 | void *vaddr; | 205 | void *vaddr; |
206 | unsigned long pfn; | 206 | unsigned long pfn; |
@@ -373,12 +373,16 @@ void __init initmem_init(unsigned long start_pfn, | |||
373 | 373 | ||
374 | allocate_pgdat(nid); | 374 | allocate_pgdat(nid); |
375 | } | 375 | } |
376 | remap_numa_kva(); | ||
377 | |||
376 | printk(KERN_DEBUG "High memory starts at vaddr %08lx\n", | 378 | printk(KERN_DEBUG "High memory starts at vaddr %08lx\n", |
377 | (ulong) pfn_to_kaddr(highstart_pfn)); | 379 | (ulong) pfn_to_kaddr(highstart_pfn)); |
378 | for_each_online_node(nid) | 380 | for_each_online_node(nid) |
379 | propagate_e820_map_node(nid); | 381 | propagate_e820_map_node(nid); |
380 | 382 | ||
381 | memset(NODE_DATA(0), 0, sizeof(struct pglist_data)); | 383 | for_each_online_node(nid) |
384 | memset(NODE_DATA(nid), 0, sizeof(struct pglist_data)); | ||
385 | |||
382 | NODE_DATA(0)->bdata = &node0_bdata; | 386 | NODE_DATA(0)->bdata = &node0_bdata; |
383 | setup_bootmem_allocator(); | 387 | setup_bootmem_allocator(); |
384 | } | 388 | } |