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


Ignore:
Timestamp:
2010-06-11T15:31:03Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
214ec25c
Parents:
be06914
Message:

distinguish between "hot" and "cold" exceptions
display only "hot" exceptions by default
add top to help

File:
1 edited

Legend:

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

    rbe06914 rb3b7e14  
    167167void exception_init(void)
    168168{
    169         int i;
     169        unsigned int i;
    170170       
    171171        /* Clear exception table */
    172172        for (i = 0; i < IVT_ITEMS; i++)
    173                 exc_register(i, "undef", (iroutine) unhandled_exception);
     173                exc_register(i, "undef", false,
     174                    (iroutine_t) unhandled_exception);
    174175       
    175         exc_register(EXC_Bp, "bkpoint", (iroutine) breakpoint_exception);
    176         exc_register(EXC_RI, "resinstr", (iroutine) reserved_instr_exception);
    177         exc_register(EXC_Mod, "tlb_mod", (iroutine) tlbmod_exception);
    178         exc_register(EXC_TLBL, "tlbinvl", (iroutine) tlbinv_exception);
    179         exc_register(EXC_TLBS, "tlbinvl", (iroutine) tlbinv_exception);
    180         exc_register(EXC_Int, "interrupt", (iroutine) interrupt_exception);
     176        exc_register(EXC_Bp, "bkpoint", true,
     177            (iroutine_t) breakpoint_exception);
     178        exc_register(EXC_RI, "resinstr", true,
     179            (iroutine_t) reserved_instr_exception);
     180        exc_register(EXC_Mod, "tlb_mod", true,
     181            (iroutine_t) tlbmod_exception);
     182        exc_register(EXC_TLBL, "tlbinvl", true,
     183            (iroutine_t) tlbinv_exception);
     184        exc_register(EXC_TLBS, "tlbinvl", true,
     185            (iroutine_t) tlbinv_exception);
     186        exc_register(EXC_Int, "interrupt", true,
     187            (iroutine_t) interrupt_exception);
     188       
    181189#ifdef CONFIG_FPU_LAZY
    182         exc_register(EXC_CpU, "cpunus", (iroutine) cpuns_exception);
     190        exc_register(EXC_CpU, "cpunus", true,
     191            (iroutine_t) cpuns_exception);
    183192#endif
    184         exc_register(EXC_Sys, "syscall", (iroutine) syscall_exception);
     193       
     194        exc_register(EXC_Sys, "syscall", true,
     195            (iroutine_t) syscall_exception);
    185196}
    186197
Note: See TracChangeset for help on using the changeset viewer.