diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
| -rw-r--r-- | arch/powerpc/kernel/setup_32.c | 45 | 
1 files changed, 14 insertions, 31 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 1d2fbc90530..ea4fda60e57 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -30,7 +30,6 @@  #include <asm/btext.h>  #include <asm/machdep.h>  #include <asm/uaccess.h> -#include <asm/system.h>  #include <asm/pmac_feature.h>  #include <asm/sections.h>  #include <asm/nvram.h> @@ -39,16 +38,14 @@  #include <asm/serial.h>  #include <asm/udbg.h>  #include <asm/mmu_context.h> - -#include "setup.h" +#include <asm/epapr_hcalls.h>  #define DBG(fmt...)  extern void bootx_init(unsigned long r4, unsigned long phys); -int boot_cpuid = -1; -EXPORT_SYMBOL_GPL(boot_cpuid);  int boot_cpuid_phys; +EXPORT_SYMBOL_GPL(boot_cpuid_phys);  int smp_hw_index[NR_CPUS]; @@ -106,6 +103,8 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)  			 PTRRELOC(&__start___lwsync_fixup),  			 PTRRELOC(&__stop___lwsync_fixup)); +	do_final_fixups(); +  	return KERNELBASE + offset;  } @@ -116,7 +115,7 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)   * This is called very early on the boot process, after a minimal   * MMU environment has been set up but before MMU_init is called.   */ -notrace void __init machine_init(unsigned long dt_ptr) +notrace void __init machine_init(u64 dt_ptr)  {  	lockdep_init(); @@ -126,6 +125,10 @@ notrace void __init machine_init(unsigned long dt_ptr)  	/* Do some early initialization based on the flat device tree */  	early_init_devtree(__va(dt_ptr)); +	epapr_paravirt_early_init(); + +	early_init_mmu(); +  	probe_machine();  	setup_kdump_trampoline(); @@ -145,27 +148,6 @@ notrace void __init machine_init(unsigned long dt_ptr)  		ppc_md.progress("id mach(): done", 0x200);  } -#ifdef CONFIG_BOOKE_WDT -/* Checks wdt=x and wdt_period=xx command-line option */ -notrace int __init early_parse_wdt(char *p) -{ -	if (p && strncmp(p, "0", 1) != 0) -	       booke_wdt_enabled = 1; - -	return 0; -} -early_param("wdt", early_parse_wdt); - -int __init early_parse_wdt_period (char *p) -{ -	if (p) -		booke_wdt_period = simple_strtoul(p, NULL, 0); - -	return 0; -} -early_param("wdt_period", early_parse_wdt_period); -#endif	/* CONFIG_BOOKE_WDT */ -  /* Checks "l2cr=xxxx" command-line option */  int __init ppc_setup_l2cr(char *str)  { @@ -263,7 +245,12 @@ static void __init exc_lvl_early_init(void)  	/* interrupt stacks must be in lowmem, we get that for free on ppc32  	 * as the memblock is limited to lowmem by MEMBLOCK_REAL_LIMIT */  	for_each_possible_cpu(i) { +#ifdef CONFIG_SMP  		hw_cpu = get_hard_smp_processor_id(i); +#else +		hw_cpu = 0; +#endif +  		critirq_ctx[hw_cpu] = (struct thread_info *)  			__va(memblock_alloc(THREAD_SIZE, THREAD_SIZE));  #ifdef CONFIG_BOOKE @@ -312,9 +299,6 @@ void __init setup_arch(char **cmdline_p)  	if (cpu_has_feature(CPU_FTR_UNIFIED_ID_CACHE))  		ucache_bsize = icache_bsize = dcache_bsize; -	/* reboot on panic */ -	panic_timeout = 180; -  	if (ppc_md.panic)  		setup_panic(); @@ -343,5 +327,4 @@ void __init setup_arch(char **cmdline_p)  	/* Initialize the MMU context management stuff */  	mmu_context_init(); -  }  | 
