Subversion Repositories HelenOS-historic

Rev

Rev 1221 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1221 Rev 1595
Line 76... Line 76...
76
    printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol, istate->ra, rasymbol, istate->sp);
76
    printf("PC: %#x(%s) RA: %#x(%s), SP(%p)\n", istate->epc, pcsymbol, istate->ra, rasymbol, istate->sp);
77
}
77
}
78
 
78
 
79
static void unhandled_exception(int n, istate_t *istate)
79
static void unhandled_exception(int n, istate_t *istate)
80
{
80
{
-
 
81
    fault_if_from_uspace(istate, "unhandled exception %s", exctable[n]);
-
 
82
   
81
    print_regdump(istate);
83
    print_regdump(istate);
82
    panic("unhandled exception %s\n", exctable[n]);
84
    panic("unhandled exception %s\n", exctable[n]);
83
}
85
}
84
 
86
 
85
static void reserved_instr_exception(int n, istate_t *istate)
87
static void reserved_instr_exception(int n, istate_t *istate)
Line 117... Line 119...
117
#ifdef CONFIG_FPU_LAZY
119
#ifdef CONFIG_FPU_LAZY
118
static void cpuns_exception(int n, istate_t *istate)
120
static void cpuns_exception(int n, istate_t *istate)
119
{
121
{
120
    if (cp0_cause_coperr(cp0_cause_read()) == fpu_cop_id)
122
    if (cp0_cause_coperr(cp0_cause_read()) == fpu_cop_id)
121
        scheduler_fpu_lazy_request();
123
        scheduler_fpu_lazy_request();
122
    else
124
    else {
-
 
125
        fault_if_from_uspace(istate, "unhandled Coprocessor Unusable Exception");
123
        panic("unhandled Coprocessor Unusable Exception\n");
126
        panic("unhandled Coprocessor Unusable Exception\n");
-
 
127
    }
124
}
128
}
125
#endif
129
#endif
126
 
130
 
127
static void interrupt_exception(int n, istate_t *istate)
131
static void interrupt_exception(int n, istate_t *istate)
128
{
132
{