函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\centaur.c Create Date:2022-07-27 08:59:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_c3

函数原型:static void init_c3(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
33  如果CPUID functions returning a single datum大于等于0xC0000001则
34  tmp等于cpuid_edx(0xC0000001)
37  如果tmp按位与ACE_PRESENT按位或ACE_ENABLED的值的值恒等于ACE_PRESENT
39  lo或等于MSR_VIA_FCR
41  打印信息("CPU: Enabled ACE h/w crypto\n")
45  如果tmp按位与RNG_PRESENT按位或RNG_ENABLED的值的值恒等于RNG_PRESENT
47  lo或等于MSR_VIA_RNG
49  打印信息("CPU: Enabled h/w RNG\n")
55  x86_capability[CPUID_C000_0001_EDX]等于cpuid_edx(0xC0000001)
59  如果x86_model大于等于6且x86_model小于等于13则
60  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(VIA Cyrix defined MSRs, lo, hi)
61  lo或等于1左移1位按位或1左移7位
62  wrmsr(VIA Cyrix defined MSRs, lo, hi)
63  set_cpu_cap(c, CMPXCHG8 instruction )
67  如果x86_model大于等于6且x86_model小于9则set_cpu_cap(c, 3DNow )
70  如果CPU family 恒等于0x6且x86_model大于等于0xf则
71  In bytes 等于x86_clflush_size乘2
72  set_cpu_cap(c, REP microcode works well )
75  cpu_detect_cache_sizes(c)
调用者
名称描述
init_centaur