Changeset a1493d9 in mainline for arch/mips/src
- Timestamp:
- 2005-09-10T17:54:53Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8491c48
- Parents:
- 24241cf
- Location:
- arch/mips/src
- Files:
-
- 2 edited
-
exception.c (modified) (3 diffs)
-
mips.c (modified) (2 diffs)
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: -
arch/mips/src/mips.c
r24241cf ra1493d9 38 38 #include <arch/interrupt.h> 39 39 40 #include <print.h> 41 40 42 /* Size of the code jumping to the exception handler code 41 43 * - J+NOP … … 47 49 #define CACHE_EXC ((char *) 0x80000100) 48 50 49 #include <arch/debug.h>50 51 #include <print.h>52 51 void arch_pre_mm_init(void) 53 52 {
Note:
See TracChangeset
for help on using the changeset viewer.
