函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\common.c |
Create Date:2022-07-27 08:55:30 |
| Last Modify:2020-03-16 20:28:31 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_cpu_cap
函数原型:void get_cpu_cap(struct cpuinfo_x86 *c)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cpuinfo_x86 * | c |
| 905 | 如果Maximum supported CPUID level, -1=no CPUID: 大于等于0x00000001则 |
| 908 | x86_capability[CPUID_1_ECX]等于ecx |
| 909 | x86_capability[CPUID_1_EDX]等于edx |
| 913 | 如果Maximum supported CPUID level, -1=no CPUID: 大于等于0x00000006则x86_capability[CPUID_6_EAX]等于CPUID functions returning a single datum |
| 917 | 如果Maximum supported CPUID level, -1=no CPUID: 大于等于0x00000007则 |
| 918 | cpuid_count(0x00000007, 0, & eax, & ebx, & ecx, & edx) |
| 919 | x86_capability[CPUID_7_0_EBX]等于ebx |
| 920 | x86_capability[CPUID_7_ECX]等于ecx |
| 921 | x86_capability[CPUID_7_EDX]等于edx |
| 924 | 如果eax大于等于1则 |
| 925 | cpuid_count(0x00000007, 1, & eax, & ebx, & ecx, & edx) |
| 926 | x86_capability[CPUID_7_1_EAX]等于eax |
| 931 | 如果Maximum supported CPUID level, -1=no CPUID: 大于等于0x0000000d则 |
| 932 | cpuid_count(0x0000000d, 1, & eax, & ebx, & ecx, & edx) |
| 934 | x86_capability[CPUID_D_1_EAX]等于eax |
| 941 | 如果eax按位与0xffff0000的值恒等于0x80000000则 |
| 942 | 如果eax大于等于0x80000001则 |
| 950 | 如果Max extended CPUID function supported: 大于等于0x80000007则 |
| 957 | 如果Max extended CPUID function supported: 大于等于0x80000008则 |
| 962 | 如果Max extended CPUID function supported: 大于等于0x8000000a则x86_capability[CPUID_8000_000A_EDX]等于cpuid_edx(0x8000000a) |
| 974 | apply_forced_caps(c) |
| 名称 | 描述 |
|---|---|
| early_identify_cpu | 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 |
| generic_identify | |
| microcode_check | The microcode loader calls this upon late microcode load to recheck features,* only when microcode has been updated. Caller holds microcode_mutex and CPU* hotplug lock. |
| early_init_intel |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |