Changeset 89c57b6 in mainline for kernel/arch/mips32/src/exception.c


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rcefb126 r89c57b6  
    7474void istate_decode(istate_t *istate)
    7575{
    76         printf("at=%p\tv0=%p\tv1=%p\n", istate->at, istate->v0, istate->v1);
    77         printf("a0=%p\ta1=%p\ta2=%p\n", istate->a0, istate->a1, istate->a2);
    78         printf("a3=%p\tt0=%p\tt1=%p\n", istate->a3, istate->t0, istate->t1);
    79         printf("t2=%p\tt3=%p\tt4=%p\n", istate->t2, istate->t3, istate->t4);
    80         printf("t5=%p\tt6=%p\tt7=%p\n", istate->t5, istate->t6, istate->t7);
    81         printf("t8=%p\tt9=%p\tgp=%p\n", istate->t8, istate->t9, istate->gp);
    82         printf("sp=%p\tra=%p\t\n", istate->sp, istate->ra);
    83         printf("lo=%p\thi=%p\t\n", istate->lo, istate->hi);
    84         printf("cp0_status=%p\tcp0_epc=%p\tk1=%p\n",
    85             istate->status, istate->epc, istate->k1);
     76        printf("epc=%p\tsta=%#010" PRIx32 "\t"
     77            "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
     78            (void *) istate->epc, istate->status,
     79            istate->lo, istate->hi);
     80       
     81        printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
     82            "a2 =%#010" PRIx32 "\ta3 =%#010" PRIx32 "\n",
     83            istate->a0, istate->a1, istate->a2, istate->a3);
     84       
     85        printf("t0 =%#010" PRIx32 "\tt1 =%#010" PRIx32 "\t"
     86            "t2 =%#010" PRIx32 "\tt3 =%#010" PRIx32 "\n",
     87            istate->t0, istate->t1, istate->t2, istate->t3);
     88       
     89        printf("t4 =%#010" PRIx32 "\tt5 =%#010" PRIx32 "\t"
     90            "t6 =%#010" PRIx32 "\tt7 =%#010" PRIx32 "\n",
     91            istate->t4, istate->t5, istate->t6, istate->t7);
     92       
     93        printf("t8 =%#010" PRIx32 "\tt9 =%#010" PRIx32 "\t"
     94            "v0 =%#010" PRIx32 "\tv1 =%#010" PRIx32 "\n",
     95            istate->t8, istate->t9, istate->v0, istate->v1);
     96       
     97        printf("s0 =%#010" PRIx32 "\ts1 =%#010" PRIx32 "\t"
     98            "s2 =%#010" PRIx32 "\ts3 =%#010" PRIx32 "\n",
     99            istate->s0, istate->s1, istate->s2, istate->s3);
     100       
     101        printf("s4 =%#010" PRIx32 "\ts5 =%#010" PRIx32 "\t"
     102            "s6 =%#010" PRIx32 "\ts7 =%#010" PRIx32 "\n",
     103            istate->s4, istate->s5, istate->s6, istate->s7);
     104       
     105        printf("s8 =%#010" PRIx32 "\tat =%#010" PRIx32 "\t"
     106            "kt0=%#010" PRIx32 "\tkt1=%#010" PRIx32 "\n",
     107            istate->s8, istate->at, istate->kt0, istate->kt1);
     108       
     109        printf("sp =%p\tra =%p\tgp =%p\n",
     110            (void *) istate->sp, (void *) istate->ra,
     111            (void *) istate->gp);
    86112}
    87113
     
    97123                ASSERT(THREAD);
    98124                istate->epc += 4;
    99                 istate->v1 = istate->k1;
     125                istate->v1 = istate->kt1;
    100126        } else
    101127                unhandled_exception(n, istate);
Note: See TracChangeset for help on using the changeset viewer.