Changeset a35b458 in mainline for kernel/arch/amd64/src/cpu/cpu.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/cpu/cpu.c
r3061bc1 ra35b458 106 106 { 107 107 cpu_info_t info; 108 108 109 109 CPU->arch.vendor = VendorUnknown; 110 110 if (has_cpuid()) { 111 111 cpuid(INTEL_CPUID_LEVEL, &info); 112 112 113 113 /* 114 114 * Check for AMD processor. … … 119 119 CPU->arch.vendor = VendorAMD; 120 120 } 121 121 122 122 /* 123 123 * Check for Intel processor. … … 128 128 CPU->arch.vendor = VendorIntel; 129 129 } 130 130 131 131 cpuid(INTEL_CPUID_STANDARD, &info); 132 132 CPU->arch.family = (info.cpuid_eax >> 8) & 0xf;
Note:
See TracChangeset
for help on using the changeset viewer.