Changeset 84239b1 in mainline for kernel/arch/mips32/src/cpu/cpu.c


Ignore:
Timestamp:
2018-03-11T19:39:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3d47c97
Parents:
850fd32
Message:

And there was much fixing.

File:
1 edited

Legend:

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

    r850fd32 r84239b1  
    109109        if (m->arch.imp_num & 0x80) {
    110110                /* Count records */
    111                 for (i = 0; imp_data80[i].vendor; i++);
     111                i = 0;
     112                while (imp_data80[i].vendor)
     113                        i++;
    112114                if ((m->arch.imp_num & 0x7f) >= i) {
    113115                        printf("imp=%d\n", m->arch.imp_num);
     
    116118                data = &imp_data80[m->arch.imp_num & 0x7f];
    117119        } else {
    118                 for (i = 0; imp_data[i].vendor; i++);
     120                i = 0;
     121                while (imp_data[i].vendor)
     122                        i++;
    119123                if (m->arch.imp_num >= i) {
    120124                        printf("imp=%d\n", m->arch.imp_num);
Note: See TracChangeset for help on using the changeset viewer.