Mercurial > ecos
diff 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 |
line wrap: on
line diff
--- a/packages/hal/powerpc/arch/current/src/hal_misc.c +++ b/packages/hal/powerpc/arch/current/src/hal_misc.c @@ -157,7 +157,7 @@ cyg_hal_exception_handler(HAL_SavedRegis } //--------------------------------------------------------------------------- -// Default ISR +// Default ISRs externC cyg_uint32 hal_default_isr(CYG_ADDRWORD vector, CYG_ADDRWORD data) @@ -168,6 +168,17 @@ hal_default_isr(CYG_ADDRWORD vector, CYG return 0; } +// The decrementer default ISR has to do nothing. The reason is that +// decrementer interrupts cannot be disabled - if a kernel configuration +// does not use the RTC, but does use external interrupts, the decrementer +// underflow could cause a CYG_FAIL (as above) even though the user did +// not expect any decrementer interrupts to happen. +externC cyg_uint32 +hal_default_decrementer_isr(CYG_ADDRWORD vector, CYG_ADDRWORD data) +{ + return 0; +} + //--------------------------------------------------------------------------- // Idle thread action
