Mercurial > nand-ecoscentric
comparison packages/hal/powerpc/arch/current/src/hal_misc.c @ 14:01ce82f3e11a ecos-sw-1999-06-11
Merge from eCos master repository on 1999-06-11-17:05:41-BST
| author | jlarmour |
|---|---|
| date | Fri, 11 Jun 1999 09:36:56 +0000 |
| parents | 443894e2e912 |
| children | 4f2df4ab82c8 |
comparison
equal
deleted
inserted
replaced
| 13:acb4fa7cb179 | 14:01ce82f3e11a |
|---|---|
| 155 | 155 |
| 156 return; | 156 return; |
| 157 } | 157 } |
| 158 | 158 |
| 159 //--------------------------------------------------------------------------- | 159 //--------------------------------------------------------------------------- |
| 160 // Default ISR | 160 // Default ISRs |
| 161 | 161 |
| 162 externC cyg_uint32 | 162 externC cyg_uint32 |
| 163 hal_default_isr(CYG_ADDRWORD vector, CYG_ADDRWORD data) | 163 hal_default_isr(CYG_ADDRWORD vector, CYG_ADDRWORD data) |
| 164 { | 164 { |
| 165 diag_printf("Interrupt: %d\n", vector); | 165 diag_printf("Interrupt: %d\n", vector); |
| 166 | 166 |
| 167 CYG_FAIL("Spurious Interrupt!!!"); | 167 CYG_FAIL("Spurious Interrupt!!!"); |
| 168 return 0; | |
| 169 } | |
| 170 | |
| 171 // The decrementer default ISR has to do nothing. The reason is that | |
| 172 // decrementer interrupts cannot be disabled - if a kernel configuration | |
| 173 // does not use the RTC, but does use external interrupts, the decrementer | |
| 174 // underflow could cause a CYG_FAIL (as above) even though the user did | |
| 175 // not expect any decrementer interrupts to happen. | |
| 176 externC cyg_uint32 | |
| 177 hal_default_decrementer_isr(CYG_ADDRWORD vector, CYG_ADDRWORD data) | |
| 178 { | |
| 168 return 0; | 179 return 0; |
| 169 } | 180 } |
| 170 | 181 |
| 171 //--------------------------------------------------------------------------- | 182 //--------------------------------------------------------------------------- |
| 172 // Idle thread action | 183 // Idle thread action |
