Ignore:
File:
1 edited

Legend:

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

    r1b20da0 ra35b458  
    7777            "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
    7878            istate->epc, istate->status, istate->lo, istate->hi);
    79        
     79
    8080        log_printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
    8181            "a2 =%#010" PRIx32 "\ta3 =%#010" PRIx32 "\n",
    8282            istate->a0, istate->a1, istate->a2, istate->a3);
    83        
     83
    8484        log_printf("t0 =%#010" PRIx32 "\tt1 =%#010" PRIx32 "\t"
    8585            "t2 =%#010" PRIx32 "\tt3 =%#010" PRIx32 "\n",
    8686            istate->t0, istate->t1, istate->t2, istate->t3);
    87        
     87
    8888        log_printf("t4 =%#010" PRIx32 "\tt5 =%#010" PRIx32 "\t"
    8989            "t6 =%#010" PRIx32 "\tt7 =%#010" PRIx32 "\n",
    9090            istate->t4, istate->t5, istate->t6, istate->t7);
    91        
     91
    9292        log_printf("t8 =%#010" PRIx32 "\tt9 =%#010" PRIx32 "\t"
    9393            "v0 =%#010" PRIx32 "\tv1 =%#010" PRIx32 "\n",
    9494            istate->t8, istate->t9, istate->v0, istate->v1);
    95        
     95
    9696        log_printf("s0 =%#010" PRIx32 "\ts1 =%#010" PRIx32 "\t"
    9797            "s2 =%#010" PRIx32 "\ts3 =%#010" PRIx32 "\n",
    9898            istate->s0, istate->s1, istate->s2, istate->s3);
    99        
     99
    100100        log_printf("s4 =%#010" PRIx32 "\ts5 =%#010" PRIx32 "\t"
    101101            "s6 =%#010" PRIx32 "\ts7 =%#010" PRIx32 "\n",
    102102            istate->s4, istate->s5, istate->s6, istate->s7);
    103        
     103
    104104        log_printf("s8 =%#010" PRIx32 "\tat =%#010" PRIx32 "\t"
    105105            "kt0=%#010" PRIx32 "\tkt1=%#010" PRIx32 "\n",
    106106            istate->s8, istate->at, istate->kt0, istate->kt1);
    107        
     107
    108108        log_printf("sp =%#010" PRIx32 "\tra =%#010" PRIx32 "\t"
    109109            "gp =%#010" PRIx32 "\n",
     
    171171        ip = (cp0_cause_read() & cp0_cause_ip_mask) >> cp0_cause_ip_shift;
    172172        im = (cp0_status_read() & cp0_status_im_mask) >> cp0_status_im_shift;
    173        
     173
    174174        unsigned int i;
    175175        for (i = 0; i < 8; i++) {
     
    212212{
    213213        unsigned int i;
    214        
     214
    215215        /* Clear exception table */
    216216        for (i = 0; i < IVT_ITEMS; i++)
    217217                exc_register(i, "undef", false,
    218218                    (iroutine_t) unhandled_exception);
    219        
     219
    220220        exc_register(EXC_Bp, "bkpoint", true,
    221221            (iroutine_t) breakpoint_exception);
     
    230230        exc_register(EXC_Int, "interrupt", true,
    231231            (iroutine_t) interrupt_exception);
    232        
     232
    233233#ifdef CONFIG_FPU_LAZY
    234234        exc_register(EXC_CpU, "cpunus", true,
    235235            (iroutine_t) cpuns_exception);
    236236#endif
    237        
     237
    238238        exc_register(EXC_Sys, "syscall", true,
    239239            (iroutine_t) syscall_exception);
Note: See TracChangeset for help on using the changeset viewer.