From: Paul M. <le...@li...> - 2007-07-21 23:51:13
|
On Sat, Jul 21, 2007 at 11:08:27PM -0700, Kristoffer Ericson wrote: > Since fallout of make_ipr_irq Im not quite sure how to repair this for > pint irq's. Ive looked at the dma-sh solution but not sure if thats the > proper way to go. > No, dma-sh isn't a way you want to go for any sort of IRQ-related suggestions. > arch/sh/kernel/cpu/irq/pint.c (uses make_ipr_irq) > At a quick glance, PINT seems to use a couple of IPR IRQs for cascade, with the bulk of the logic in the demux. In this case, you're going to want to make sure that your CPU includes those PINT vectors in its IPR map, and then set up chained handlers for both where the PINT demux kicks in as normal. None of that should be terribly difficult, though you are going to want to convert your CPU subtype to the new INTC that Magnus wrote, he might be able to give you some more input if you run in to some barriers doing the conversion. SH7722 Solution Engine currently uses a chained handler with a demux in this scheme, so you may want to look as that as an example. Especially as the CPU itself was the first one converted to the generic INTC model. |