函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_transmeta

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
26  cpu_freq等于0
29  early_init_transmeta(c)
31  cpu_detect_cache_sizes(c)
34  max等于CPUID functions returning a single datum
35  cpu_rev等于0
36  如果max大于等于0x80860001则
37  cpuid(0x80860001, & dummy, & cpu_rev, & cpu_freq, & cpu_flags)
38  如果cpu_rev不等于0x02000000则
39  打印信息("CPU: Processor revision %u.%u.%u.%u, %u MHz\n", (cpu_rev >> 24) & 0xff, (cpu_rev >> 16) & 0xff, (cpu_rev >> 8) & 0xff, cpu_rev & 0xff, cpu_freq)
47  如果max大于等于0x80860002则
48  cpuid(0x80860002, & new_cpu_rev, & cms_rev1, & cms_rev2, & dummy)
49  如果cpu_rev恒等于0x02000000则
50  打印信息("CPU: Processor revision %08X, %u MHz\n", new_cpu_rev, cpu_freq)
53  打印信息("CPU: Code Morphing Software revision %u.%u.%u-%u-%u\n", (cms_rev1 >> 24) & 0xff, (cms_rev1 >> 16) & 0xff, (cms_rev1 >> 8) & 0xff, cms_rev1 & 0xff, cms_rev2)
60  如果max大于等于0x80860006则
61  cpuid(0x80860003, (void * ) & cpu_info[0], (void * ) & cpu_info[4], (void * ) & cpu_info[8], (void * ) & cpu_info[12])
66  cpuid(0x80860004, (void * ) & cpu_info[16], (void * ) & cpu_info[20], (void * ) & cpu_info[24], (void * ) & cpu_info[28])
71  cpuid(0x80860005, (void * ) & cpu_info[32], (void * ) & cpu_info[36], (void * ) & cpu_info[40], (void * ) & cpu_info[44])
76  cpuid(0x80860006, (void * ) & cpu_info[48], (void * ) & cpu_info[52], (void * ) & cpu_info[56], (void * ) & cpu_info[60])
81  cpu_info[64]等于'\0'
82  打印信息("CPU: %s\n", cpu_info)
86  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(0x80860004, cap_mask, uk)
87  wrmsr(0x80860004, ~0, uk)
88  x86_capability[CPUID_1_EDX]等于cpuid_edx(0x00000001)
89  wrmsr(0x80860004, cap_mask, uk)
92  set_cpu_cap(c, TSC ticks at a constant rate )
99  randomize_va_space等于0