aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-02 17:17:45 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-09 02:47:38 -0400
commit944916858a430a0627e483657d4cfa2cd2dfb4f7 (patch)
tree37fa713f9c336daab10b132bd3e00c57f6111b71 /arch/powerpc/kernel/setup_64.c
parent91c60b5b8209627590b31c07262e40c27d27d272 (diff)
powerpc: Shield code specific to 64-bit server processors
This is a random collection of added ifdef's around portions of code that only mak sense on server processors. Using either CONFIG_PPC_STD_MMU_64 or CONFIG_PPC_BOOK3S as seems appropriate. This is meant to make the future merging of Book3E 64-bit support easier. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index c410c606955d..42221055f0c4 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -417,9 +417,11 @@ void __init setup_system(void)
417 if (ppc64_caches.iline_size != 0x80) 417 if (ppc64_caches.iline_size != 0x80)
418 printk("ppc64_caches.icache_line_size = 0x%x\n", 418 printk("ppc64_caches.icache_line_size = 0x%x\n",
419 ppc64_caches.iline_size); 419 ppc64_caches.iline_size);
420#ifdef CONFIG_PPC_STD_MMU_64
420 if (htab_address) 421 if (htab_address)
421 printk("htab_address = 0x%p\n", htab_address); 422 printk("htab_address = 0x%p\n", htab_address);
422 printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); 423 printk("htab_hash_mask = 0x%lx\n", htab_hash_mask);
424#endif /* CONFIG_PPC_STD_MMU_64 */
423 if (PHYSICAL_START > 0) 425 if (PHYSICAL_START > 0)
424 printk("physical_start = 0x%lx\n", 426 printk("physical_start = 0x%lx\n",
425 PHYSICAL_START); 427 PHYSICAL_START);
@@ -511,8 +513,9 @@ void __init setup_arch(char **cmdline_p)
511 irqstack_early_init(); 513 irqstack_early_init();
512 emergency_stack_init(); 514 emergency_stack_init();
513 515
516#ifdef CONFIG_PPC_STD_MMU_64
514 stabs_alloc(); 517 stabs_alloc();
515 518#endif
516 /* set up the bootmem stuff with available memory */ 519 /* set up the bootmem stuff with available memory */
517 do_init_bootmem(); 520 do_init_bootmem();
518 sparse_init(); 521 sparse_init();