Embedded PowerPC have the need of implementing 3 timers in the core
area:
- a fixed interval timer
- a programable interval timer
- a watchdog timer
Those 3 timers are fully independant and can raise different exceptions
(eventually at the same time). For this reason, they cannot be
implemented properly using the existing CPU_INTERRUPT_TIMER. My proposal
would be to add more definitions for another CPU_INTERRUPT_TIMER2 and
CPU_INTERUUPT_WDT in cpu-all.h.
As many embedded processors may have this need, it seems to be that this
could be useful for other targets too....
Another solution would be to add another bitfield to the CPU definition
structure, but then the CPU_INTERRUPT current definitions become less
useful imho.

Please comment.

-- 
J. Mayer <[EMAIL PROTECTED]>
Never organized



Reply via email to