* Compiling interrupt controller code as a module
@ 2007-04-17 15:31 Laurent Pinchart
2007-04-17 17:13 ` Bill Gatliff
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2007-04-17 15:31 UTC (permalink / raw)
To: Linuxppc-embedded
Hi everybody.
I wrote a kernel driver for a custom bus (using arch/ppc). The hardware has a
cascaded interrupt controller wired to one of the CPU interrupts. The
interrupt controller IRQ handler calls __do_IRQ() to dispatch interrupts.
Everything worked fine until I tried to compile the code as a module because
__do_IRQ() is not exported. Is there a way to compile an interrupt controller
as a module, or must it be included in the kernel ?
Best regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compiling interrupt controller code as a module
2007-04-17 15:31 Compiling interrupt controller code as a module Laurent Pinchart
@ 2007-04-17 17:13 ` Bill Gatliff
2007-04-18 9:39 ` Laurent Pinchart
0 siblings, 1 reply; 3+ messages in thread
From: Bill Gatliff @ 2007-04-17 17:13 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: Linuxppc-embedded
Laurent Pinchart wrote:
> Hi everybody.
>
> I wrote a kernel driver for a custom bus (using arch/ppc). The hardware has a
> cascaded interrupt controller wired to one of the CPU interrupts. The
> interrupt controller IRQ handler calls __do_IRQ() to dispatch interrupts.
>
> Everything worked fine until I tried to compile the code as a module because
> __do_IRQ() is not exported. Is there a way to compile an interrupt controller
> as a module, or must it be included in the kernel ?
>
Could you just export __do_IRQ()?
b.g.
--
Bill Gatliff
bgat@billgatliff.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compiling interrupt controller code as a module
2007-04-17 17:13 ` Bill Gatliff
@ 2007-04-18 9:39 ` Laurent Pinchart
0 siblings, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2007-04-18 9:39 UTC (permalink / raw)
To: Bill Gatliff; +Cc: Linuxppc-embedded
Hi Bill,
> > I wrote a kernel driver for a custom bus (using arch/ppc). The hardware
> > has a cascaded interrupt controller wired to one of the CPU interrupts.
> > The interrupt controller IRQ handler calls __do_IRQ() to dispatch
> > interrupts.
> >
> > Everything worked fine until I tried to compile the code as a module
> > because __do_IRQ() is not exported. Is there a way to compile an
> > interrupt controller as a module, or must it be included in the kernel ?
>
> Could you just export __do_IRQ()?
That's obviously the easiest solution. As __do_IRQ() is not exported by
default, and as the function name starts with two underscores, I got the
feeling it was somehow meant to be private.
I also had a look at the genirq code. It misses a few exports as well
(irq_set_chip_and_handler for instance).
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-18 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17 15:31 Compiling interrupt controller code as a module Laurent Pinchart
2007-04-17 17:13 ` Bill Gatliff
2007-04-18 9:39 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).