Mercurial > flash_v2
comparison packages/hal/mips/arch/current/src/hal_misc.c @ 62:7a6ac9edc838 ecos-sw-2000-01-24
Merge from eCos master repository on 2000-01-24-19:43:49-GMT
| author | jlarmour |
|---|---|
| date | Mon, 24 Jan 2000 21:43:17 +0000 |
| parents | a0774359f013 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 61:e44112c47676 | 62:7a6ac9edc838 |
|---|---|
| 72 | 72 |
| 73 externC cyg_uint8 cyg_hal_mips_process_fpe( HAL_SavedRegisters *regs ); | 73 externC cyg_uint8 cyg_hal_mips_process_fpe( HAL_SavedRegisters *regs ); |
| 74 | 74 |
| 75 externC cyg_uint32 cyg_hal_exception_handler(HAL_SavedRegisters *regs) | 75 externC cyg_uint32 cyg_hal_exception_handler(HAL_SavedRegisters *regs) |
| 76 { | 76 { |
| 77 #ifdef CYGHWR_HAL_MIPS_FPU | 77 #if defined(CYGHWR_HAL_MIPS_FPU) && \ |
| 78 defined(CYGSEM_HAL_MIPS_EMULATE_UNIMPLEMENTED_FPU_OPS) | |
| 78 // We may be required to emulate certain unimplemented Floating Point | 79 // We may be required to emulate certain unimplemented Floating Point |
| 79 // operations | 80 // operations |
| 80 | 81 |
| 81 if ((regs->vector>>2) == CYGNUM_HAL_VECTOR_FPE) { | 82 if ((regs->vector>>2) == CYGNUM_HAL_VECTOR_FPE) { |
| 82 | 83 |
| 135 { | 136 { |
| 136 cyg_uint32 result = HAL_CTRLC_ISR( vector, data ); | 137 cyg_uint32 result = HAL_CTRLC_ISR( vector, data ); |
| 137 if( result != 0 ) return result; | 138 if( result != 0 ) return result; |
| 138 } | 139 } |
| 139 | 140 |
| 140 #if defined(CYG_HAL_USE_ROM_MONITOR_CYGMON) | 141 #if defined(CYGSEM_HAL_USE_ROM_MONITOR_CygMon) |
| 141 #if defined(HAL_DIAG_IRQ_CHECK) | 142 #if defined(HAL_DIAG_IRQ_CHECK) |
| 142 { | 143 { |
| 143 cyg_uint32 ret; | 144 cyg_uint32 ret; |
| 144 /* let ROM monitor handle unexpected interrupts */ | 145 /* let ROM monitor handle unexpected interrupts */ |
| 145 HAL_DIAG_IRQ_CHECK(vector, ret); | 146 HAL_DIAG_IRQ_CHECK(vector, ret); |
| 146 if (ret<=0) | 147 if (ret<=0) |
| 147 return ret; | 148 return ret; |
| 148 } | 149 } |
| 149 #endif // def HAL_DIAG_IRQ_CHECK | 150 #endif // def HAL_DIAG_IRQ_CHECK |
| 150 #endif // def CYG_HAL_USE_ROM_MONITOR | 151 #endif // def CYGSEM_HAL_USE_ROM_MONITOR_CygMon |
| 151 #endif | 152 #endif |
| 152 | 153 |
| 153 CYG_TRACE1(true, "Interrupt: %d", vector); | 154 CYG_TRACE1(true, "Interrupt: %d", vector); |
| 154 CYG_FAIL("Spurious Interrupt!!!"); | 155 CYG_FAIL("Spurious Interrupt!!!"); |
| 155 return 0; | 156 return 0; |
