函数逻辑报告 |
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 |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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则 |
| 814 | CPU family 等于x86_family(tfms) |
| 816 | x86_stepping等于x86_stepping(tfms) |
| 818 | 如果cap0按位与1左移19位则 |
| 819 | x86_clflush_size等于misc右移8位按位与0xff的值乘8 |
| 820 | In bytes 等于x86_clflush_size |
| 名称 | 描述 |
|---|---|
| early_identify_cpu | Do 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |