Function report |
Source Code:arch\x86\kernel\cpu\zhaoxin.c |
Create Date:2022-07-28 07:59:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_zhaoxin_cap
Proto:static void init_zhaoxin_cap(struct cpuinfo_x86 *c)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c |
31 | If CPUID functions returning a single datum >= 0xC0000001 Then |
35 | If (tmp & (ACE_PRESENT | ACE_ENABLED)) == ACE_PRESENT Then |
38 | lo |= MSR_ZHAOXIN_FCR |
39 | wrmsr(MSR_ZHAOXIN_FCR57, lo, hi) |
40 | pr_info("CPU: Enabled ACE h/w crypto\n") |
44 | If (tmp & (RNG_PRESENT | RNG_ENABLED)) == RNG_PRESENT Then |
47 | lo |= MSR_ZHAOXIN_RNG |
48 | wrmsr(MSR_ZHAOXIN_FCR57, lo, hi) |
49 | pr_info("CPU: Enabled h/w RNG\n") |
56 | x86_capability[CPUID_C000_0001_EDX] = cpuid_edx(0xC0000001) |
59 | If CPU family >= 0x6 Then set_cpu_cap(c, REP microcode works well ) |
Name | Describe |
---|---|
init_zhaoxin |
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 |