void __init setup_arch(char **cmdline_p) { cpu_probe(); prom_init(); #ifdef CONFIG_EARLY_PRINTK setup_early_printk(); #endif cpu_report(); check_bugs_early(); #if defined(CONFIG_VT) #if defined(CONFIG_VGA_CONSOLE) conswitchp = &vga_con; #elif defined(CONFIG_DUMMY_CONSOLE) conswitchp = &dummy_con; #endif #endif arch_mem_init(cmdline_p); resource_init(); plat_smp_setup(); cpu_cache_init(); }
void __init setup_arch(char **cmdline_p) { randomize_va_space = 0; *cmdline_p = command_line; cpu_cache_init(); tlb_init(); bootmem_init(); paging_init(); resource_init(); }
void __init trap_init(void) { int i; pgd_current = (unsigned long)init_mm.pgd; /* DEBUG EXCEPTION */ memcpy((void *)DEBUG_VECTOR_BASE_ADDR, &debug_exception_vector, DEBUG_VECTOR_SIZE); /* NMI EXCEPTION */ memcpy((void *)GENERAL_VECTOR_BASE_ADDR, &general_exception_vector, GENERAL_VECTOR_SIZE); /* * Initialise exception handlers */ for (i = 0; i <= 31; i++) set_except_vector(i, handle_reserved); set_except_vector(1, handle_nmi); set_except_vector(2, handle_adelinsn); set_except_vector(3, handle_tlb_refill); set_except_vector(4, handle_tlb_invaild); set_except_vector(5, handle_ibe); set_except_vector(6, handle_pel); set_except_vector(7, handle_sys); set_except_vector(8, handle_ccu); set_except_vector(9, handle_ri); set_except_vector(10, handle_tr); set_except_vector(11, handle_adedata); set_except_vector(12, handle_adedata); set_except_vector(13, handle_tlb_refill); set_except_vector(14, handle_tlb_invaild); set_except_vector(15, handle_mod); set_except_vector(16, handle_cee); set_except_vector(17, handle_cpe); set_except_vector(18, handle_dbe); flush_icache_range(DEBUG_VECTOR_BASE_ADDR, IRQ_VECTOR_BASE_ADDR); mmgrab(&init_mm); current->active_mm = &init_mm; cpu_cache_init(); }