common/main.c main_loop
/* We come here after U-Boot is initialised and ready to process commands */
void main_loop(void)
{
const char *s;
bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
#ifdef CONFIG_VERSION_VARIABLE
setenv("ver", version_string); /* set version variable */
#endif /* CONFIG_VERSION_VARIABLE */
cli_init();
run_preboot_environment_command();
#if defined(CONFIG_UPDATE_TFTP)
update_tftp(0UL, NULL, NULL);
#endif /* CONFIG_UPDATE_TFTP */
s = bootdelay_process();
if (cli_process_fdt(&s))
cli_secure_boot_cmd(s);
autoboot_command(s);
cli_loop();
panic("No CLI available");
}
uboot下run_main_loop中main_loop实现
原创
©著作权归作者所有:来自51CTO博客作者sunlei0625的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【linux 系统移植④】uboot 进入 main_loop() 前
uboot 进入 main_loop() 前
linux 运维 服务器 #endif #ifdef -
【linux 系统移植⑤】uboot 进入main_loop() 后
uboot 进入main_loop()后
linux 运维 服务器 #define #endif -
(二)asyncio的简单使用,python异步高效处理数据,asyncio.get_event_loop(),loop.run_until_complete(main()),loop.close()
Asyncio 是一个基于事件循环的异步I/O框架,它提供了高效的
Python 异步a s y n ci o 异步asyncio 事件循环 ci -
GTK+主循环(main loop)的工作原理
GTK+主循环(main loop)的工作原理 转载时请注明出处和作者联
gtk 工作 socket callback dialog