函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\common.c |
Create Date:2022-07-27 08:55:38 |
Last Modify:2020-03-16 20:28:31 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Do minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code
函数原型:static void __init early_identify_cpu(struct cpuinfo_x86 *c)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuinfo_x86 * | c |
1199 | x86_clflush_size等于64 |
1200 | x86_phys_bits等于36 |
1201 | x86_virt_bits等于48 |
1207 | In bytes 等于x86_clflush_size |
1209 | memset( & x86_capability, 0, x86_capability的长度) |
1216 | 如果Probe for the CPUID instruction 则 |
1217 | cpu_detect(c) |
1218 | get_cpu_vendor(c) |
1219 | get_cpu_cap(c) |
1220 | get_cpu_address_sizes(c) |
1223 | 如果c_early_init则c_early_init(c) |
1226 | Index into per_cpu list: 等于0 |
1227 | filter_cpuid_features(c, false) |
1229 | 如果c_bsp_init则c_bsp_init(c) |
1231 | 否则 |
1237 | cpu_set_bug_bits(c) |
1261 | 如果非pgtable_l5_enabled()则setup_clear_cpu_cap(5-level page tables ) |
名称 | 描述 |
---|---|
early_cpu_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |