函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-27 08:58:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:bsp_init_amd
函数原型:static void bsp_init_amd(struct cpuinfo_x86 *c)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuinfo_x86 * | c |
497 | 如果CPU family 大于等于0xf则 |
505 | 如果非rdmsrl_safe(MSR_K8_TSEG_ADDR, & tseg)则 |
509 | 如果pfn_range_is_mapped(pfn, pfn + 1)则set_memory_4k((unsignedlong)__va(tseg), 1) |
515 | 如果cpu_has(c, TSC ticks at a constant rate )则 |
517 | 如果CPU family 大于0x10或CPU family 恒等于0x10且x86_model大于等于0x2则 |
521 | rdmsrl(MSR_K7_HWCR, val) |
522 | 如果非val按位与BIT(24)的值则打印警告信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"TSC doesn't count with P0 frequency!\n") |
527 | 如果CPU family 恒等于0x15则 |
536 | flags等于ALIGN_VA_32按位或ALIGN_VA_64 |
539 | bits等于get_random_int()按位与mask |
550 | 否则如果boot_cpu_has(NodeId MSR )则 |
553 | rdmsrl(MSR_FAM10H_NODE_ID, value) |
557 | 如果非boot_cpu_has("" Speculative Store Bypass Disable )且非boot_cpu_has(Virtualized Speculative Store Bypass Disable )且CPU family 大于等于0x15且CPU family 小于等于0x17则 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |