Changeset a1493d9 in mainline for arch/mips/src/exception.c
- Timestamp:
- 2005-09-10T17:54:53Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8491c48
- Parents:
- 24241cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/src/exception.c
r24241cf ra1493d9 37 37 void exception(struct exception_regdump *pstate) 38 38 { 39 int cause; 39 40 int excno; 40 41 __u32 epc_shift = 0; … … 60 61 THREAD->pstate = pstate; 61 62 63 cause = cp0_cause_read(); 64 excno = cp0_cause_excno(cause); 62 65 /* decode exception number and process the exception */ 63 switch (excno = (cp0_cause_read() >> 2) & 0x1f) {66 switch (excno) { 64 67 case EXC_Int: 65 68 interrupt(); … … 71 74 case EXC_CpU: 72 75 #ifdef FPU_LAZY 73 scheduler_fpu_lazy_request();74 #else 75 panic("unhandled Coprocessor Unusable Exception\n");76 if (cp0_cause_coperr(cause) == fpu_cop_id) 77 scheduler_fpu_lazy_request(); 78 else 76 79 #endif 80 panic("unhandled Coprocessor Unusable Exception\n"); 77 81 break; 78 82 case EXC_Mod:
Note:
See TracChangeset
for help on using the changeset viewer.