函数逻辑报告

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:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Given CPU signature and a microcode patch, this function finds if the* microcode patch has matching family and model with the CPU.* %true - if there's a match* %false - otherwise

函数原型:static bool microcode_matches(struct microcode_header_intel *mc_header, unsigned long sig)

返回类型:bool

参数:

类型参数名称
struct microcode_header_intel *mc_header
unsigned longsig
113  total_size等于get_totalsize(mc_header)
114  data_size等于get_datasize(mc_header)
121  fam等于x86_family(sig)
122  model等于x86_model(sig)
124  fam_ucode等于x86_family(sig)
125  model_ucode等于x86_model(sig)
127  如果fam恒等于fam_ucodemodel恒等于model_ucode则返回:true
131  如果total_size小于等于data_sizeMC_HEADER_SIZE则返回:false
134  ext_header等于mc_headerdata_sizeMC_HEADER_SIZE
135  ext_sig等于ext_headerEXT_HEADER_SIZE
136  ext_sigcount等于count
138 i小于ext_sigcount循环
139  fam_ucode等于x86_family(sig)
140  model_ucode等于x86_model(sig)
142  如果fam恒等于fam_ucodemodel恒等于model_ucode则返回:true
145  ext_sig自加
147  返回:false
调用者
名称描述
scan_microcodeGet microcode matching with BSP's model. Only CPUs with the same model as* BSP can stay in the platform.