void __init early_init_dt_scan_nodes(void)
{
int rc = 0;
/* Initialize {size,address}-cells info */
of_scan_flat_dt(early_init_dt_scan_root, NULL);
/* Retrieve various information from the /chosen node */
rc = of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line);
if (!rc)
pr_warn("No chosen node found, continuing without\n");
/* Setup memory, calling early_init_dt_add_memory_arch */
of_scan_flat_dt(early_init_dt_scan_memory, NULL);
/* Handle linux,usable-memory-range property */
early_init_dt_check_for_usable_mem_range();
}
论dts --- linux kernel 实现欣赏
最新推荐文章于 2024-01-29 14:13:55 发布
该代码段初始化了大小和地址单元信息,扫描设备树并处理选定节点。如果未找到选定节点,则发出警告。接着配置内存,处理可用内存范围属性。
6073

被折叠的 条评论
为什么被折叠?



