Changes in kernel/arch/ppc32/src/cpu/cpu.c [3500f75:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/cpu/cpu.c
r3500f75 ra000878c 34 34 35 35 #include <arch/cpu.h> 36 #include <arch/cpuid.h> 36 37 #include <cpu.h> 37 38 #include <arch.h> … … 44 45 void cpu_identify(void) 45 46 { 46 cpu_version(&CPU->arch); 47 cpu_info_t info; 48 49 cpu_version(&info); 50 CPU->arch.version = info.version; 51 CPU->arch.revision = info.revision; 47 52 } 48 53 49 void cpu_print_report(cpu_t * cpu)54 void cpu_print_report(cpu_t *m) 50 55 { 51 56 const char *name; 52 57 53 switch ( cpu->arch.version) {58 switch (m->arch.version) { 54 59 case 8: 55 name = " PowerPC 750";60 name = " (PowerPC 750)"; 56 61 break; 57 62 case 9: 58 name = " PowerPC 604e";63 name = " (PowerPC 604e)"; 59 64 break; 60 65 case 0x81: 61 name = " PowerPC 8260";66 name = " (PowerPC 8260)"; 62 67 break; 63 68 case 0x8081: 64 name = " PowerPC 826xA";69 name = " (PowerPC 826xA)"; 65 70 break; 66 71 default: 67 name = " unknown";72 name = ""; 68 73 } 69 74 70 printf("cpu%" PRIs ": version=%" PRIu16" (%s), revision=%" PRIu16 "\n", cpu->id, 71 cpu->arch.version, name, cpu->arch.revision); 75 printf("cpu%d: version=%d%s, revision=%d\n", m->id, m->arch.version, name, m->arch.revision); 72 76 } 73 77
Note:
See TracChangeset
for help on using the changeset viewer.