函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\intel.c Create Date:2022-07-27 09:08:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:collect_cpu_info

函数原型:static int collect_cpu_info(int cpu_num, struct cpu_signature *csig)

返回类型:int

参数:

类型参数名称
intcpu_num
struct cpu_signature *csig
765  c等于cpu_data(cpu_num)
768  memset(csig, 0, csig的长度)
770  sig等于CPUID functions returning a single datum
772  如果x86_model大于等于5或CPU family 大于6则
774  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_IA32_PLATFORM_ID, val[0], val[1])
775  pf等于1左移val[1]右移18位按位与7的值位
778  rev等于microcode
781  如果sig不等于sigpf不等于pfrev不等于rev
782  打印信息("sig=0x%x, pf=0x%x, revision=0x%x\n", sig, pf, rev)
784  prev等于csig
787  返回:0