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


Ignore:
Timestamp:
2010-06-11T16:07:21Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b584cd4
Parents:
b3b7e14
Message:

use unsigned integers for exception and interrupt numbers

File:
1 edited

Legend:

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

    rb3b7e14 r214ec25c  
    7979}
    8080
    81 static void unhandled_exception(int n, istate_t *istate)
     81static void unhandled_exception(unsigned int n, istate_t *istate)
    8282{
    8383        fault_if_from_uspace(istate, "Unhandled exception %s.", exctable[n]);
     
    8787}
    8888
    89 static void reserved_instr_exception(int n, istate_t *istate)
     89static void reserved_instr_exception(unsigned int n, istate_t *istate)
    9090{
    9191        if (*((uint32_t *) istate->epc) == 0x7c03e83b) {
     
    9797}
    9898
    99 static void breakpoint_exception(int n, istate_t *istate)
     99static void breakpoint_exception(unsigned int n, istate_t *istate)
    100100{
    101101#ifdef CONFIG_DEBUG
     
    109109}
    110110
    111 static void tlbmod_exception(int n, istate_t *istate)
     111static void tlbmod_exception(unsigned int n, istate_t *istate)
    112112{
    113113        tlb_modified(istate);
    114114}
    115115
    116 static void tlbinv_exception(int n, istate_t *istate)
     116static void tlbinv_exception(unsigned int n, istate_t *istate)
    117117{
    118118        tlb_invalid(istate);
     
    120120
    121121#ifdef CONFIG_FPU_LAZY
    122 static void cpuns_exception(int n, istate_t *istate)
     122static void cpuns_exception(unsigned int n, istate_t *istate)
    123123{
    124124        if (cp0_cause_coperr(cp0_cause_read()) == fpu_cop_id)
     
    131131#endif
    132132
    133 static void interrupt_exception(int n, istate_t *istate)
     133static void interrupt_exception(unsigned int n, istate_t *istate)
    134134{
    135135        /* Decode interrupt number and process the interrupt */
     
    151151                                 */
    152152#ifdef CONFIG_DEBUG
    153                                 printf("cpu%u: spurious interrupt (inum=%d)\n",
     153                                printf("cpu%u: spurious interrupt (inum=%u)\n",
    154154                                    CPU->id, i);
    155155#endif
     
    160160
    161161/** Handle syscall userspace call */
    162 static void syscall_exception(int n, istate_t *istate)
     162static void syscall_exception(unsigned int n, istate_t *istate)
    163163{
    164164        panic("Syscall is handled through shortcut.");
Note: See TracChangeset for help on using the changeset viewer.