函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:early_init_amd

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
630  early_init_amd_mc(c)
633  如果CPU family 恒等于6则set_cpu_cap(c, "" Athlon )
637  如果CPU family 大于等于0xf则set_cpu_cap(c, "" Opteron, Athlon64 )
640  dmsr with exception handling (AMD64 MSRs. Not complete. See the architecture manual for a more* complete list., & microcode, & dummy)
646  如果x86_power按位与1左移8位则
647  set_cpu_cap(c, TSC ticks at a constant rate )
648  set_cpu_cap(c, TSC does not stop in C states )
652  如果x86_power按位与BIT(12)则set_cpu_cap(c, AMD Accumulated Power Mechanism )
656  set_cpu_cap(c, "" syscall in IA32 userspace )
690  set_cpu_cap(c, Prefer VMMCALL to VMCALL )
693  如果CPU family 恒等于0x16且x86_model小于等于0xf则Set @bit in a MSR @msr.* Retval:* < 0: An error was encountered.* = 0: Bit was already set.* > 0: Hardware accepted the MSR write.
702  如果cpu_has_amd_erratum(c, amd_erratum_400)则set_cpu_bug(c, CPU is among the affected by Erratum 400 )
705  early_detect_mem_encrypt(c)
708  如果CPU family 恒等于0x15且x86_model大于等于0x10且x86_model小于等于0x6f且非cpu_has(c, Topology extensions CPUID leafs )则
713  rdmsrl(0xc0011005, value)
714  如果value按位与BIT_64(54)则
716  pr_info_once(FW_INFO"CPU: Re-enabling disabled Topology Extensions Support.\n")
721  amd_get_topology_early(c)
调用者
名称描述
init_amd