1 #include <linux/kernel.h>
4 #include <asm/processor.h>
13 xlvl = cpuid_eax(0x80860000);
14 if ((xlvl & 0xffff0000) == 0x80860000) {
15 if (xlvl >= 0x80860001)
22 unsigned int cap_mask, uk,
max,
dummy;
23 unsigned int cms_rev1, cms_rev2;
24 unsigned int cpu_rev, cpu_freq = 0, cpu_flags, new_cpu_rev;
27 early_init_transmeta(c);
32 max = cpuid_eax(0x80860000);
34 if (max >= 0x80860001) {
35 cpuid(0x80860001, &dummy, &cpu_rev, &cpu_freq, &cpu_flags);
36 if (cpu_rev != 0x02000000) {
38 (cpu_rev >> 24) & 0xff,
39 (cpu_rev >> 16) & 0xff,
40 (cpu_rev >> 8) & 0xff,
45 if (max >= 0x80860002) {
46 cpuid(0x80860002, &new_cpu_rev, &cms_rev1, &cms_rev2, &dummy);
47 if (cpu_rev == 0x02000000) {
49 new_cpu_rev, cpu_freq);
51 printk(
KERN_INFO "CPU: Code Morphing Software revision %u.%u.%u-%u-%u\n",
52 (cms_rev1 >> 24) & 0xff,
53 (cms_rev1 >> 16) & 0xff,
54 (cms_rev1 >> 8) & 0xff,
58 if (max >= 0x80860006) {
63 (
void *)&cpu_info[12]);
65 (
void *)&cpu_info[16],
66 (
void *)&cpu_info[20],
67 (
void *)&cpu_info[24],
68 (
void *)&cpu_info[28]);
70 (
void *)&cpu_info[32],
71 (
void *)&cpu_info[36],
72 (
void *)&cpu_info[40],
73 (
void *)&cpu_info[44]);
75 (
void *)&cpu_info[48],
76 (
void *)&cpu_info[52],
77 (
void *)&cpu_info[56],
78 (
void *)&cpu_info[60]);
84 rdmsr(0x80860004, cap_mask, uk);
85 wrmsr(0x80860004, ~0, uk);
87 wrmsr(0x80860004, cap_mask, uk);
97 randomize_va_space = 0;
102 .c_vendor =
"Transmeta",
103 .c_ident = {
"GenuineTMx86",
"TransmetaCPU" },
104 .c_early_init = early_init_transmeta,
105 .c_init = init_transmeta,