函数逻辑报告 |
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 |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 long | sig |
| 113 | total_size等于get_totalsize(mc_header) |
| 114 | data_size等于get_datasize(mc_header) |
| 121 | fam等于x86_family(sig) |
| 124 | fam_ucode等于x86_family(sig) |
| 125 | model_ucode等于x86_model(sig) |
| 127 | 如果fam恒等于fam_ucode且model恒等于model_ucode则返回:true |
| 131 | 如果total_size小于等于data_size加MC_HEADER_SIZE则返回:false |
| 136 | ext_sigcount等于count |
| 138 | 以i小于ext_sigcount循环 |
| 139 | fam_ucode等于x86_family(sig) |
| 140 | model_ucode等于x86_model(sig) |
| 142 | 如果fam恒等于fam_ucode且model恒等于model_ucode则返回:true |
| 145 | ext_sig自加 |
| 147 | 返回:false |
| 名称 | 描述 |
|---|---|
| scan_microcode | Get microcode matching with BSP's model. Only CPUs with the same model as* BSP can stay in the platform. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |