Ignore:
File:
1 edited

Legend:

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

    ra000878c re16e0d59  
    4949#include <symtab.h>
    5050
    51 static const char *exctable[] = {
     51static char * exctable[] = {
    5252        "Interrupt",
    5353        "TLB Modified",
     
    7474static void print_regdump(istate_t *istate)
    7575{
    76         const char *pcsymbol = symtab_fmt_name_lookup(istate->epc);
    77         const char *rasymbol = symtab_fmt_name_lookup(istate->ra);
    78        
     76        char *pcsymbol, *rasymbol;
     77
     78        pcsymbol = symtab_fmt_name_lookup(istate->epc);
     79        rasymbol = symtab_fmt_name_lookup(istate->ra);
     80
    7981        printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol,
    8082            istate->ra, rasymbol, istate->sp);
     
    9193static void reserved_instr_exception(int n, istate_t *istate)
    9294{
    93         if (*((uint32_t *) istate->epc) == 0x7c03e83b) {
     95        if (*((uint32_t *)istate->epc) == 0x7c03e83b) {
    9496                ASSERT(THREAD);
    9597                istate->epc += 4;
    9698                istate->v1 = istate->k1;
    97         } else
     99        } else 
    98100                unhandled_exception(n, istate);
    99101}
Note: See TracChangeset for help on using the changeset viewer.