Rev 1731 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1731 | Rev 1780 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | } |
49 | } |
50 | 50 | ||
51 | void cpu_print_report(cpu_t *m) |
51 | void cpu_print_report(cpu_t *m) |
52 | { |
52 | { |
53 | char *family_str; |
53 | char *family_str; |
54 | char vendor[2*sizeof(__u64)+1]; |
54 | char vendor[2*sizeof(uint64_t)+1]; |
55 | 55 | ||
56 | *((__u64 *) &vendor[0*sizeof(__u64)]) = CPU->arch.cpuid0; |
56 | *((uint64_t *) &vendor[0*sizeof(uint64_t)]) = CPU->arch.cpuid0; |
57 | *((__u64 *) &vendor[1*sizeof(__u64)]) = 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"; |