MPC8xx interrupts

leonp leonp at plris.com
Wed Oct 24 08:15:59 UTC 2001


On Wednesday 24 October 2001 09:39, you wrote:
> Artemii S. Ivanov wrote:
> > Hello, all MPC8xx users!
....................
> > Some usefull thing could be added to this interrupt dispatching code:
> > It seems that interrupt handler routine should have input parameter -
> > void interrupt_handler(void *arg),

> This has already been discussed several time on the list. I'm not in
> favor of that because the actual API
> 	1) enables to do what you want using different trampoline handler,
> 	2) Increase the number of instruction in the generic code even if you do
> not need an argument,
> if you connect two handlers :
> trampoline_irq1 and trampoline_irq2 and do
> trampoline_irq1() { generic_handler(table_args[irq1]);}
> trampoline_irq2() { generic_handler(table_args[irq2]);}
>
> You have exactly what you want just the code is inside the application
> and not inside the generic irq processing and thus do not cause extra
> processing for irq that do not need multiplexing.
>
> Otherwyse, the code is easy to modify to do what you want. NB : I even
> submitted a patch for ix86 to show that it was easy to implement...


I also should like to vote against adding extra code in time critical regions.


Leon M.Pollak
leonp at plris.com



More information about the users mailing list