函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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则
906  cpuid(0x00000001, & eax, & ebx, & ecx, & edx)
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)
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
938  eax等于CPUID functions returning a single datum
939  Max extended CPUID function supported: 等于eax
941  如果eax按位与0xffff0000的值恒等于0x80000000则
942  如果eax大于等于0x80000001则
943  cpuid(0x80000001, & eax, & ebx, & ecx, & edx)
950  如果Max extended CPUID function supported: 大于等于0x80000007则
951  cpuid(0x80000007, & eax, & ebx, & ecx, & edx)
953  x86_capability[CPUID_8000_0007_EBX]等于ebx
954  x86_power等于edx
957  如果Max extended CPUID function supported: 大于等于0x80000008则
958  cpuid(0x80000008, & eax, & ebx, & ecx, & edx)
959  x86_capability[CPUID_8000_0008_EBX]等于ebx
962  如果Max extended CPUID function supported: 大于等于0x8000000a则x86_capability[CPUID_8000_000A_EDX]等于cpuid_edx(0x8000000a)
965  init_scattered_cpuid_features(c)
966  init_speculation_control(c)
967  init_cqm(c)
974  apply_forced_caps(c)
调用者
名称描述
early_identify_cpuDo 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_checkThe 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