Changeset 33eb919 in mainline
- Timestamp:
- 2009-10-22T14:03:35Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c696ad1a
- Parents:
- 50989793
- Location:
- kernel/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/cpu/cpu.c
r50989793 r33eb919 130 130 CPU->arch.vendor = VendorUnknown; 131 131 if (has_cpuid()) { 132 cpuid( 0, &info);132 cpuid(INTEL_CPUID_LEVEL, &info); 133 133 134 134 /* … … 150 150 } 151 151 152 cpuid( 1, &info);152 cpuid(INTEL_CPUID_STANDARD, &info); 153 153 CPU->arch.family = (info.cpuid_eax >> 8) & 0xf; 154 154 CPU->arch.model = (info.cpuid_eax >> 4) & 0xf; -
kernel/arch/ia32/src/cpu/cpu.c
r50989793 r33eb919 102 102 CPU->fpu_owner = NULL; 103 103 104 cpuid( 1, &info);104 cpuid(INTEL_CPUID_STANDARD, &info); 105 105 106 106 fi.word = info.cpuid_edx; … … 132 132 CPU->arch.vendor = VendorUnknown; 133 133 if (has_cpuid()) { 134 cpuid( 0, &info);134 cpuid(INTEL_CPUID_LEVEL, &info); 135 135 136 136 /* … … 150 150 CPU->arch.vendor = VendorIntel; 151 151 152 cpuid( 1, &info);152 cpuid(INTEL_CPUID_STANDARD, &info); 153 153 CPU->arch.family = (info.cpuid_eax >> 8) & 0x0f; 154 154 CPU->arch.model = (info.cpuid_eax >> 4) & 0x0f;
Note:
See TracChangeset
for help on using the changeset viewer.