Subversion Repositories HelenOS-historic

Rev

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

Rev 15 Rev 68
Line 49... Line 49...
49
    /* decode exception number and process the exception */
49
    /* decode exception number and process the exception */
50
    switch(excno = (cp0_cause_read()>>2)&0x1f) {
50
    switch(excno = (cp0_cause_read()>>2)&0x1f) {
51
        case EXC_Int: interrupt(); break;
51
        case EXC_Int: interrupt(); break;
52
        case EXC_TLBL:
52
        case EXC_TLBL:
53
        case EXC_TLBS: tlb_invalid(); break;
53
        case EXC_TLBS: tlb_invalid(); break;
54
        default: panic(PANIC "unhandled exception %d\n", excno); break;
54
        default: panic("unhandled exception %d\n", excno); break;
55
    }
55
    }
56
   
56
   
57
    if (THREAD) {
57
    if (THREAD) {
58
        pri = THREAD->saved_pri;
58
        pri = THREAD->saved_pri;
59
        epc = THREAD->saved_epc;
59
        epc = THREAD->saved_epc;