函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-27 08:58:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:init_amd_k6
函数原型:static void init_amd_k6(struct cpuinfo_x86 *c)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cpuinfo_x86 * | c |
| 120 | mbytes等于get_num_physpages()右移20减PAGE_SHIFT determines the page size 位 |
| 122 | 如果x86_model小于6则 |
| 124 | 如果x86_model恒等于0则 |
| 125 | clear_cpu_cap(c, Onboard APIC ) |
| 126 | set_cpu_cap(c, Page Global Enable ) |
| 128 | 返回 |
| 131 | 如果x86_model恒等于6且x86_stepping恒等于1则 |
| 132 | K6_BUG_LOOP等于1000000 |
| 137 | 打印信息("AMD K6 stepping B detected - ") |
| 144 | n等于K6_BUG_LOOP |
| 147 | d等于dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 149 | f_vide() |
| 150 | d2等于dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 153 | 如果d大于20乘K6_BUG_LOOP则打印标准信息("system stability may be impaired when more than 32 MB are used.\n") |
| 155 | 否则打印标准信息("probably OK (after B9730xxxx).\n") |
| 160 | 如果x86_model小于8或x86_model恒等于8且x86_stepping小于8则 |
| 167 | 如果l按位与0x0000FFFF的值恒等于0则 |
| 177 | 返回 |
| 180 | 如果x86_model恒等于8且x86_stepping大于7或x86_model恒等于9或x86_model恒等于13则 |
| 188 | 如果l按位与0xFFFF0000的值恒等于0则 |
| 199 | 返回 |
| 202 | 如果x86_model恒等于10则 |
| 205 | 返回 |
| 名称 | 描述 |
|---|---|
| init_amd |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |