全部博文(28)
发布时间:2014-04-21 20:34:23
tatic noinline void __init_refok rest_init(void){int pid;rcu_scheduler_starting();/* * We need to spawn init first so that it obtains pid 1, however * the init task will end up wanting to create kthreads, which, if * we schedule it before we create kthreadd, will OOPS. *//***********创建ker.........【阅读全文】
发布时间:2014-04-21 16:24:54
void __init setup_arch(char **cmdline_p){定义变量点击(此处)折叠或打开struct tag *tags = (struct tag *)&init_tags;struct machine_desc *mdesc;char *from = default_command_line;unwind_init();再次检测cpusetup_processor();再次检测Mach.........【阅读全文】
发布时间:2014-04-20 17:28:13
uboot调用内核时传递的参数是 r1=Machine_ID ENTRY(stext)setmodePSR_F_BIT | PSR_I_BIT | SVC_MODE, r9 @ ensure svc mode@ and irqs disabledmrcp15, 0, r9, c0, c0@ get processor idbl__lookup_processor_type@ 返回值r5=procinfo r9=cpuid 点击(此处)折叠或打开.........【阅读全文】
发布时间:2014-04-18 20:48:31
bootloader启动代码start.s调用ldr pc ,_start_armboot_start_armboot : .word start_armboot将_start_armboot地址的内容start_armboot赋给pc从而进入第二阶段第二阶段的功能:初始化IRQ FIQ模式的栈 arch_cpu_init设置系统时钟 保存机器IDgd->bd->bi_arch_number = M.........【阅读全文】
发布时间:2014-04-18 14:22:33
1。第一阶段完成的功能u-boot-2010.06/arch/arm/cpu/arm920t/start.SBootloader第一阶段的功能硬件初始化。 关WATCHDOG、关中断 设置CPU工作模式为管理模式(svc) 设置时钟频率 FCLK,HCLK,PCLK的比例(即设置CLKDIVN) RAM初始化 关闭MMU.CACHE为加载Bootloader的第二阶段代.........【阅读全文】