LK top lk_main处理
来源:互联网 发布:电子表格怎么合计数据 编辑:程序博客网 时间:2024/06/07 17:49
lk/top/main.c
/* called from arch code */void lk_main(ulong arg0, ulong arg1, ulong arg2, ulong arg3){ // save the boot args lk_boot_args[0] = arg0; lk_boot_args[1] = arg1; lk_boot_args[2] = arg2; lk_boot_args[3] = arg3;
// get us into some sort of thread context thread_init_early();
// early arch stuff lk_primary_cpu_init_level(LK_INIT_LEVEL_EARLIEST, LK_INIT_LEVEL_ARCH_EARLY - 1); arch_early_init();
// do any super early platform initialization lk_primary_cpu_init_level(LK_INIT_LEVEL_ARCH_EARLY, LK_INIT_LEVEL_PLATFORM_EARLY - 1); platform_early_init();
// do any super early target initialization lk_primary_cpu_init_level(LK_INIT_LEVEL_PLATFORM_EARLY, LK_INIT_LEVEL_TARGET_EARLY - 1); target_early_init();
#if WITH_SMP dprintf(INFO, "\nwelcome to lk/MP\n\n");#else dprintf(INFO, "\nwelcome to lk\n\n");#endif dprintf(INFO, "boot args 0x%lx 0x%lx 0x%lx 0x%lx\n", lk_boot_args[0], lk_boot_args[1], lk_boot_args[2], lk_boot_args[3]);
// bring up the kernel heap lk_primary_cpu_init_level(LK_INIT_LEVEL_TARGET_EARLY, LK_INIT_LEVEL_HEAP - 1); dprintf(SPEW, "initializing heap\n"); heap_init();
// deal with any static constructors dprintf(SPEW, "calling constructors\n"); call_constructors();
// initialize the kernel lk_primary_cpu_init_level(LK_INIT_LEVEL_HEAP, LK_INIT_LEVEL_KERNEL - 1); kernel_init();
lk_primary_cpu_init_level(LK_INIT_LEVEL_KERNEL, LK_INIT_LEVEL_THREADING - 1);
// create a thread to complete system initialization dprintf(SPEW, "creating bootstrap completion thread\n"); thread_t *t = thread_create("bootstrap2", &bootstrap2, NULL, DEFAULT_PRIORITY, DEFAULT_STACK_SIZE); thread_set_pinned_cpu(t, 0); thread_detach(t); thread_resume(t);
// become the idle thread and enable interrupts to start the scheduler thread_become_idle();}
- LK top lk_main处理
- LK top bootstrap2
- LK thread_create处理
- LK thread_set_pinned_cpu处理
- LK thread_detach处理
- LK thread_become_idle处理
- LK ARM64 arch_init处理
- LK platform_init处理
- LK ARM64 start.S处理
- LK ARM64 asm.S处理
- LK
- lk
- 处理 Top
- lk中中断的处理flow
- 高通msm8x60 boot(lk)的usb处理解析流程
- 高通msm8x60 boot(lk)的usb处理解析流程
- UNEXPECTED TOP-LEVEL EXCEPTION 处理
- UNEXPECTED TOP-LEVEL EXCEPTION 处理
- android从入门到精通sl(实例源程序)
- hadoop中4种压缩格式的特征的比较
- CentOS6.5下二进制安装mysql-5.6.27
- 免费ARP(gratuitous ARP)
- tableview 去掉分割线线和右侧滚动条
- LK top lk_main处理
- win7 64位Pb6.5连接Oracle数据库失败ORA-12154
- Spring Tools Suite (STS) 简介(转)
- docker read tcp 50.17.62.194:443: connection reset by peer 镜像下载不下来需要配置国内服务器
- JavaWeb环境搭建
- Enum学习总结
- HTML页面内容
- 对象模型OMD图的理解与应用
- JSON.parse()和JSON.stringify()