函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-27 08:55:26
Last Modify:2020-03-16 20:28:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cpu_detect

函数原型:void cpu_detect(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
803  cpuid(0x00000000, (unsignedint * ) & Maximum supported CPUID level, -1=no CPUID: , (unsignedint * ) & x86_vendor_id[0], (unsignedint * ) & x86_vendor_id[8], (unsignedint * ) & x86_vendor_id[4])
808  CPU family 等于4
810  如果Maximum supported CPUID level, -1=no CPUID: 大于等于0x00000001则
813  cpuid(0x00000001, & tfms, & misc, & junk, & cap0)
814  CPU family 等于x86_family(tfms)
815  x86_model等于x86_model(tfms)
816  x86_stepping等于x86_stepping(tfms)
818  如果cap0按位与1左移19位则
819  x86_clflush_size等于misc右移8位按位与0xff的值乘8
调用者
名称描述
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