Ignore:
File:
1 edited

Legend:

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

    r8469c53 r0c61955  
    7474void istate_decode(istate_t *istate)
    7575{
    76         printf("epc=%#010" PRIx32 "\tsta=%#010" PRIx32 "\t"
    77             "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
     76        printf("epc=%p\tsta=%p\tlo =%p\thi =%p\n",
    7877            istate->epc, istate->status, istate->lo, istate->hi);
    79        
    80         printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
    81             "a2 =%#010" PRIx32 "\ta3 =%#010" PRIx32 "\n",
     78        printf("a0 =%p\ta1 =%p\ta2 =%p\ta3 =%p\n",
    8279            istate->a0, istate->a1, istate->a2, istate->a3);
    83        
    84         printf("t0 =%#010" PRIx32 "\tt1 =%#010" PRIx32 "\t"
    85             "t2 =%#010" PRIx32 "\tt3 =%#010" PRIx32 "\n",
     80        printf("t0 =%p\tt1 =%p\tt2 =%p\tt3 =%p\n",
    8681            istate->t0, istate->t1, istate->t2, istate->t3);
    87        
    88         printf("t4 =%#010" PRIx32 "\tt5 =%#010" PRIx32 "\t"
    89             "t6 =%#010" PRIx32 "\tt7 =%#010" PRIx32 "\n",
     82        printf("t4 =%p\tt5 =%p\tt6 =%p\tt7 =%p\n",
    9083            istate->t4, istate->t5, istate->t6, istate->t7);
    91        
    92         printf("t8 =%#010" PRIx32 "\tt9 =%#010" PRIx32 "\t"
    93             "v0 =%#010" PRIx32 "\tv1 =%#010" PRIx32 "\n",
     84        printf("t8 =%p\tt9 =%p\tv0 =%p\tv1 =%p\n",
    9485            istate->t8, istate->t9, istate->v0, istate->v1);
    95        
    96         printf("s0 =%#010" PRIx32 "\ts1 =%#010" PRIx32 "\t"
    97             "s2 =%#010" PRIx32 "\ts3 =%#010" PRIx32 "\n",
     86        printf("s0 =%p\ts1 =%p\ts2 =%p\ts3 =%p\n",
    9887            istate->s0, istate->s1, istate->s2, istate->s3);
    99        
    100         printf("s4 =%#010" PRIx32 "\ts5 =%#010" PRIx32 "\t"
    101             "s6 =%#010" PRIx32 "\ts7 =%#010" PRIx32 "\n",
     88        printf("s4 =%p\ts5 =%p\ts6 =%p\ts7 =%p\n",
    10289            istate->s4, istate->s5, istate->s6, istate->s7);
    103        
    104         printf("s8 =%#010" PRIx32 "\tat =%#010" PRIx32 "\t"
    105             "kt0=%#010" PRIx32 "\tkt1=%#010" PRIx32 "\n",
     90        printf("s8 =%p\tat =%p\tkt0=%p\tkt1=%p\n",
    10691            istate->s8, istate->at, istate->kt0, istate->kt1);
    107        
    108         printf("sp =%#010" PRIx32 "\tra =%#010" PRIx32 "\t"
    109             "gp =%#010" PRIx32 "\n",
     92        printf("sp =%p\tra =%p\tgp =%p\n",
    11093            istate->sp, istate->ra, istate->gp);
    11194}
Note: See TracChangeset for help on using the changeset viewer.