Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 33eb919 in mainline for kernel/arch/amd64/src/cpu/cpu.c


Ignore:
Timestamp:
2009-10-22T14:03:35Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
c696ad1a
Parents:
50989793
Message:

Use defined macros instead of magic constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/cpu/cpu.c

    r50989793 r33eb919  
    130130        CPU->arch.vendor = VendorUnknown;
    131131        if (has_cpuid()) {
    132                 cpuid(0, &info);
     132                cpuid(INTEL_CPUID_LEVEL, &info);
    133133
    134134                /*
     
    150150                }
    151151                               
    152                 cpuid(1, &info);
     152                cpuid(INTEL_CPUID_STANDARD, &info);
    153153                CPU->arch.family = (info.cpuid_eax >> 8) & 0xf;
    154154                CPU->arch.model = (info.cpuid_eax >> 4) & 0xf;
Note: See TracChangeset for help on using the changeset viewer.