linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nate Pletcher <pletch@po.cwru.edu>
To: Wolfgang Denk <wd@denx.de>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: using cpm interrupts on 8xx
Date: 23 May 2002 15:01:26 -0400	[thread overview]
Message-ID: <1022180488.1225.63.camel@soundgarden> (raw)
In-Reply-To: <20020522162110.447DF1196F@denx.denx.de>


On Wed, 2002-05-22 at 12:21, Wolfgang Denk wrote:
> > 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?

> > 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/

       reply	other threads:[~2002-05-23 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020522162110.447DF1196F@denx.denx.de>
2002-05-23 19:01 ` Nate Pletcher [this message]
2002-05-23 19:09   ` using cpm interrupts on 8xx Tom Rini
2002-05-22 14:58 Nate Pletcher
2002-05-23  3:20 ` Dan Malek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1022180488.1225.63.camel@soundgarden \
    --to=pletch@po.cwru.edu \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=wd@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).