Changeset 6c441cf8 in mainline for kernel/arch/mips32/src/cpu/cpu.c
- Timestamp:
- 2008-02-27T11:49:17Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56976a17
- Parents:
- fdb7795
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/cpu/cpu.c
rfdb7795 r6c441cf8 105 105 { 106 106 struct data_t *data; 107 int i;107 unsigned int i; 108 108 109 109 if (m->arch.imp_num & 0x80) { 110 110 /* Count records */ 111 for (i=0;imp_data80[i].vendor;i++) 112 ; 111 for (i = 0; imp_data80[i].vendor; i++); 113 112 if ((m->arch.imp_num & 0x7f) >= i) { 114 printf("imp=%d\n", m->arch.imp_num);113 printf("imp=%d\n", m->arch.imp_num); 115 114 return; 116 115 } 117 116 data = &imp_data80[m->arch.imp_num & 0x7f]; 118 117 } else { 119 for (i=0;imp_data[i].vendor;i++) 120 ; 118 for (i = 0; imp_data[i].vendor; i++); 121 119 if (m->arch.imp_num >= i) { 122 printf("imp=%d\n", m->arch.imp_num);120 printf("imp=%d\n", m->arch.imp_num); 123 121 return; 124 122 } … … 128 126 printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n", 129 127 m->id, data->vendor, data->model, m->arch.rev_num >> 4, 130 128 m->arch.rev_num & 0xf, m->arch.imp_num); 131 129 } 132 130
Note:
See TracChangeset
for help on using the changeset viewer.