Function report |
Source Code:arch\x86\kernel\cpu\hygon.c |
Create Date:2022-07-28 07:58:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bsp_init_hygon
Proto:static void bsp_init_hygon(struct cpuinfo_x86 *c)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c |
214 | If Not rdmsrl_safe(MSR_K8_TSEG_ADDR, & tseg) Then |
215 | pfn = tseg >> PAGE_SHIFT determines the page size |
218 | If pfn_range_is_mapped(pfn, pfn + 1) Then set_memory_4k((unsignedlong)__va(tseg), 1) |
223 | If cpu_has(c, TSC ticks at a constant rate ) Then |
226 | rdmsrl(MSR_K7_HWCR, val) |
227 | If Not (val & BIT(24)) Then pr_warn(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") |
231 | If cpu_has(c, MWAIT extension (MONITORX/MWAITX instructions) ) Then use_mwaitx_delay() |
234 | If boot_cpu_has(Topology extensions CPUID leafs ) Then |
239 | Else if boot_cpu_has(NodeId MSR ) Then |
242 | rdmsrl(MSR_FAM10H_NODE_ID, value) |
246 | If Not boot_cpu_has("" Speculative Store Bypass Disable ) && Not boot_cpu_has(Virtualized Speculative Store Bypass Disable ) Then |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |