diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index b0994050024f..0471e843b6c5 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <asm/elf.h> | 41 | #include <asm/elf.h> |
42 | #include <asm/machdep.h> | 42 | #include <asm/machdep.h> |
43 | #include <asm/paca.h> | 43 | #include <asm/paca.h> |
44 | #include <asm/ppcdebug.h> | ||
45 | #include <asm/time.h> | 44 | #include <asm/time.h> |
46 | #include <asm/cputable.h> | 45 | #include <asm/cputable.h> |
47 | #include <asm/sections.h> | 46 | #include <asm/sections.h> |
@@ -60,6 +59,7 @@ | |||
60 | #include <asm/firmware.h> | 59 | #include <asm/firmware.h> |
61 | #include <asm/systemcfg.h> | 60 | #include <asm/systemcfg.h> |
62 | #include <asm/xmon.h> | 61 | #include <asm/xmon.h> |
62 | #include <asm/udbg.h> | ||
63 | 63 | ||
64 | #ifdef DEBUG | 64 | #ifdef DEBUG |
65 | #define DBG(fmt...) udbg_printf(fmt) | 65 | #define DBG(fmt...) udbg_printf(fmt) |
@@ -244,12 +244,6 @@ void __init early_setup(unsigned long dt_ptr) | |||
244 | DBG(" -> early_setup()\n"); | 244 | DBG(" -> early_setup()\n"); |
245 | 245 | ||
246 | /* | 246 | /* |
247 | * Fill the default DBG level (do we want to keep | ||
248 | * that old mecanism around forever ?) | ||
249 | */ | ||
250 | ppcdbg_initialize(); | ||
251 | |||
252 | /* | ||
253 | * Do early initializations using the flattened device | 247 | * Do early initializations using the flattened device |
254 | * tree, like retreiving the physical memory map or | 248 | * tree, like retreiving the physical memory map or |
255 | * calculating/retreiving the hash table size | 249 | * calculating/retreiving the hash table size |
@@ -401,43 +395,6 @@ static void __init initialize_cache_info(void) | |||
401 | DBG(" <- initialize_cache_info()\n"); | 395 | DBG(" <- initialize_cache_info()\n"); |
402 | } | 396 | } |
403 | 397 | ||
404 | static void __init check_for_initrd(void) | ||
405 | { | ||
406 | #ifdef CONFIG_BLK_DEV_INITRD | ||
407 | u64 *prop; | ||
408 | |||
409 | DBG(" -> check_for_initrd()\n"); | ||
410 | |||
411 | if (of_chosen) { | ||
412 | prop = (u64 *)get_property(of_chosen, | ||
413 | "linux,initrd-start", NULL); | ||
414 | if (prop != NULL) { | ||
415 | initrd_start = (unsigned long)__va(*prop); | ||
416 | prop = (u64 *)get_property(of_chosen, | ||
417 | "linux,initrd-end", NULL); | ||
418 | if (prop != NULL) { | ||
419 | initrd_end = (unsigned long)__va(*prop); | ||
420 | initrd_below_start_ok = 1; | ||
421 | } else | ||
422 | initrd_start = 0; | ||
423 | } | ||
424 | } | ||
425 | |||
426 | /* If we were passed an initrd, set the ROOT_DEV properly if the values | ||
427 | * look sensible. If not, clear initrd reference. | ||
428 | */ | ||
429 | if (initrd_start >= KERNELBASE && initrd_end >= KERNELBASE && | ||
430 | initrd_end > initrd_start) | ||
431 | ROOT_DEV = Root_RAM0; | ||
432 | else | ||
433 | initrd_start = initrd_end = 0; | ||
434 | |||
435 | if (initrd_start) | ||
436 | printk("Found initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); | ||
437 | |||
438 | DBG(" <- check_for_initrd()\n"); | ||
439 | #endif /* CONFIG_BLK_DEV_INITRD */ | ||
440 | } | ||
441 | 398 | ||
442 | /* | 399 | /* |
443 | * Do some initial setup of the system. The parameters are those which | 400 | * Do some initial setup of the system. The parameters are those which |
@@ -521,7 +478,6 @@ void __init setup_system(void) | |||
521 | 478 | ||
522 | printk("-----------------------------------------------------\n"); | 479 | printk("-----------------------------------------------------\n"); |
523 | printk("ppc64_pft_size = 0x%lx\n", ppc64_pft_size); | 480 | printk("ppc64_pft_size = 0x%lx\n", ppc64_pft_size); |
524 | printk("ppc64_debug_switch = 0x%lx\n", ppc64_debug_switch); | ||
525 | printk("ppc64_interrupt_controller = 0x%ld\n", ppc64_interrupt_controller); | 481 | printk("ppc64_interrupt_controller = 0x%ld\n", ppc64_interrupt_controller); |
526 | printk("systemcfg = 0x%p\n", systemcfg); | 482 | printk("systemcfg = 0x%p\n", systemcfg); |
527 | printk("systemcfg->platform = 0x%x\n", systemcfg->platform); | 483 | printk("systemcfg->platform = 0x%x\n", systemcfg->platform); |