Changeset 43114c5 in mainline for arch/ia32/src/cpu/cpu.c
- Timestamp:
- 2005-04-09T18:22:53Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8262010
- Parents:
- e6ba9a3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/cpu/cpu.c
re6ba9a3f r43114c5 62 62 void cpu_arch_init(void) 63 63 { 64 the->cpu->arch.tss = tss_p;64 CPU->arch.tss = tss_p; 65 65 } 66 66 … … 71 71 int i; 72 72 73 the->cpu->arch.vendor = VendorUnknown;73 CPU->arch.vendor = VendorUnknown; 74 74 if (has_cpuid()) { 75 75 cpuid(0, &info); … … 82 82 info.cpuid_edx==AMD_CPUID_EDX) { 83 83 84 the->cpu->arch.vendor = VendorAMD;84 CPU->arch.vendor = VendorAMD; 85 85 } 86 86 … … 92 92 info.cpuid_edx==INTEL_CPUID_EDX) { 93 93 94 the->cpu->arch.vendor = VendorIntel;94 CPU->arch.vendor = VendorIntel; 95 95 96 96 } 97 97 98 98 cpuid(1, &info); 99 the->cpu->arch.family = (info.cpuid_eax>>8)&0xf;100 the->cpu->arch.model = (info.cpuid_eax>>4)&0xf;101 the->cpu->arch.stepping = (info.cpuid_eax>>0)&0xf;99 CPU->arch.family = (info.cpuid_eax>>8)&0xf; 100 CPU->arch.model = (info.cpuid_eax>>4)&0xf; 101 CPU->arch.stepping = (info.cpuid_eax>>0)&0xf; 102 102 } 103 103 }
Note:
See TracChangeset
for help on using the changeset viewer.