linux 系统启动 函数调用关系
来源:互联网 发布:mac pptp vpn 设置 编辑:程序博客网 时间:2024/05/29 14:23
内核版本:3.14.52
1.处理uboot传入的参数:机器ID,启动参数
2.调用关系:
arch/arm/kernel/head.S: ldr r13, =__mmap_switched head_common.S: b start_kernel main.c: setup_arch(&command_line); setup_command_line(command_line); //解析uboot传入的启动参数 rest_init(); //准备进行根文件系统挂载 kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND); static int __ref kernel_init(void *unused) static noinline void __init kernel_init_freeable(void) sys_open((const char __user *) "/dev/console", O_RDWR, 0) //打开console do_mounts.c: void __init prepare_namespace(void)-->void __init mount_root(void) //挂载根文件系统 执行相关初始化应用程序
阅读全文