Changeset 24241cf in mainline for arch/mips/src/cpu/cpu.c


Ignore:
Timestamp:
2005-09-10T17:30:56Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1493d9
Parents:
9060bd1
Message:

Basic changes to boot it on SGI Indy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/cpu/cpu.c

    r9060bd1 r24241cf  
    7878        { "Sony", "R3000" },            /* 0x21 */
    7979        { "Toshiba", "R3000" },         /* 0x22 */
    80         { "NKK", "R3000" }              /* 0x23 */
     80        { "NKK", "R3000" },             /* 0x23 */
     81        { NULL, NULL }
    8182};
    8283
     
    8586        {"Invalid","Invalid"}, /* 0x81 */
    8687        {"Invalid","Invalid"}, /* 0x82 */
    87         {"MIPS","4Km & 4Kp"} /* 0x83 */
     88        {"MIPS","4Km & 4Kp"}, /* 0x83 */
     89        { NULL, NULL}
    8890};
    8991
     
    101103{
    102104        struct data_t *data;
     105        int i;
    103106
    104107        if (m->arch.imp_num & 0x80) {
     108                /* Count records */
     109                for (i=0;imp_data80[i].vendor;i++)
     110                        ;
     111                if (m->arch.imp_num & 0x7f >= i) {
     112                        printf("imp=%d\n",m->arch.imp_num);
     113                        return;
     114                }
    105115                data = &imp_data80[m->arch.imp_num & 0x7f];
    106         } else
     116        } else {
     117                for (i=0;imp_data[i].vendor;i++)
     118                        ;
     119                if (m->arch.imp_num >= i) {
     120                        printf("imp=%d\n",m->arch.imp_num);
     121                        return;
     122                }
    107123                data = &imp_data[m->arch.imp_num];
     124        }
    108125
    109126        printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n",
Note: See TracChangeset for help on using the changeset viewer.