Rev 2787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 4377 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | char *family_str; |
53 | char *family_str; |
54 | char vendor[2 * sizeof(uint64_t) + 1]; |
54 | char vendor[2 * sizeof(uint64_t) + 1]; |
55 | 55 | ||
56 | *((uint64_t *) &vendor[0 * sizeof(uint64_t)]) = CPU->arch.cpuid0; |
56 | *((uint64_t *) &vendor[0 * sizeof(uint64_t)]) = CPU->arch.cpuid0; |
57 | *((uint64_t *) &vendor[1 * sizeof(uint64_t)]) = CPU->arch.cpuid1; |
57 | *((uint64_t *) &vendor[1 * sizeof(uint64_t)]) = CPU->arch.cpuid1; |
58 | vendor[sizeof(vendor) - 1] = '\0'; |
58 | vendor[sizeof(vendor) - 1] = 0; |
59 | 59 | ||
60 | switch(m->arch.cpuid3.family) { |
60 | switch(m->arch.cpuid3.family) { |
61 | case FAMILY_ITANIUM: |
61 | case FAMILY_ITANIUM: |
62 | family_str = "Itanium"; |
62 | family_str = "Itanium"; |
63 | break; |
63 | break; |
Line 68... | Line 68... | ||
68 | family_str = "Unknown"; |
68 | family_str = "Unknown"; |
69 | break; |
69 | break; |
70 | } |
70 | } |
71 | 71 | ||
72 | printf("cpu%d: %s (%s), archrev=%d, model=%d, revision=%d\n", CPU->id, |
72 | printf("cpu%d: %s (%s), archrev=%d, model=%d, revision=%d\n", CPU->id, |
73 | family_str, vendor, CPU->arch.cpuid3.archrev, CPU->arch.cpuid3.model, |
73 | family_str, vendor, CPU->arch.cpuid3.archrev, |
74 | CPU->arch.cpuid3.revision); |
74 | CPU->arch.cpuid3.model, CPU->arch.cpuid3.revision); |
75 | } |
75 | } |
76 | 76 | ||
77 | /** @} |
77 | /** @} |
78 | */ |
78 | */ |