Re: using cpm interrupts on 8xx

2 messages, 2 authors, 2002-05-23 · open the first message on its own page

Re: using cpm interrupts on 8xx

From: Nate Pletcher <hidden>
Date: 2002-05-23 19:01:26

On Wed, 2002-05-22 at 12:21, Wolfgang Denk wrote:
quoted
interrupt for the CPM and then another handler for the individual IDMA
interrupt from the CPM?  Perhaps someone could point me to some
No, the CPM has it's own interrupt already registered  with  the  SIU
(because  things  like  the console UART or Ethernet need it anyway).
You are right in principle, though: this registration was done  using
request_8xxirq() - but it has to be done only once, and Linux already
did  this  for you. So all you need is to call cpm_install_handler().
to register your CPM interrupt handler.
Thanks for the explanation.  Now I understand how the CPM interrupts
work.

Ok, I tried using cpm_install_handler in my loadable module by including
arch/ppc/8xx_io/commproc.h and it compiles cleanly, but when I try to
insert the module I get:

# insmod fpga.o
fpga.o: unresolved symbol cpm_install_handler

I looked through the Linux 2.2.14 source we are using and the function
is there but it isn't exported in arch/ppc/kernel/ppc_ksyms.c.  I added
a line to export the symbol but still got the same error.  Any ideas?
quoted
We're using MontaVista's
Hard Hat Linux CDK 1.2 with the 2.2.14 kernel and included tools.
This stuff is _awfully_ old. Why don't you use a more current kernel?
We're in the process of migrating to a new kernel, and this may solve
the problem.  Does anyone have recommendations for kernel sources that
are easy to get running on a CLLF/RPXlite board (i.e. kernel.org with
ppc patch or BitKeeper linux_2_4?)

Thanks,
Nate


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: using cpm interrupts on 8xx

From: Tom Rini <hidden>
Date: 2002-05-23 19:09:26

On Thu, May 23, 2002 at 03:01:26PM -0400, Nate Pletcher wrote:
Ok, I tried using cpm_install_handler in my loadable module by including
arch/ppc/8xx_io/commproc.h and it compiles cleanly, but when I try to
insert the module I get:

# insmod fpga.o
fpga.o: unresolved symbol cpm_install_handler

I looked through the Linux 2.2.14 source we are using and the function
is there but it isn't exported in arch/ppc/kernel/ppc_ksyms.c.  I added
a line to export the symbol but still got the same error.  Any ideas?
It's a 'feature':
$ mv .config /tmp/
$ make distclean
$ mv /tmp/.config .
$ make oldconfig
$ make zImage modules
And try again.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help