Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\transmeta.c Create Date:2022-07-28 07:59:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_transmeta

Proto:static void init_transmeta(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
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  If max >= 0x80860001 Then
37  cpuid(0x80860001, & dummy, & cpu_rev, & cpu_freq, & cpu_flags)
38  If cpu_rev != 0x02000000 Then
39  pr_info("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  If max >= 0x80860002 Then
48  cpuid(0x80860002, & new_cpu_rev, & cms_rev1, & cms_rev2, & dummy)
49  If cpu_rev == 0x02000000 Then
50  pr_info("CPU: Processor revision %08X, %u MHz\n", new_cpu_rev, cpu_freq)
53  pr_info("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  If max >= 0x80860006 Then
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  pr_info("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