From: Jesper Skov <jskov@redhat.com>
To: Daniel Lind <daniel.lind@sth.frontec.se>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Interrupt and IO-device driver
Date: Wed, 18 Oct 2000 06:47:00 -0000 [thread overview]
Message-ID: <otu2aa45yd.fsf@thinktwice.zoftcorp.dk> (raw)
In-Reply-To: <39ED54A6.6B90D0FB@bluelabs.se>
>>>>> "Daniel" == Daniel Lind <daniel.lind@sth.frontec.se> writes:
Daniel> Hi, I'm using PowerPC MBX860 and I'm trying to write a device
Daniel> driver for SCC2. Look bellow for the code.... The interrupts
Daniel> doesn't seem to work right. I have investigated SCCE[Tx] and
Daniel> this bit is set after a buffert is sent, so this is ok. I have
Daniel> also checked CIPR (CPM interrupt pending register) and this
Daniel> register tells me that an interrupt is pending on SCC2, this
Daniel> is also ok. After doing these tests I think that the problem
Daniel> is that I haven't initialized the interrupts in the right
Daniel> way.....ISR and DSR are never called.
Does the CPM arbiter in var_intr.c (hal_arbitration_isr_cpm) get
properly set up? It probably does if you selected the 860 variant.
Still, that's the only thing in the chain I can think of (off hand) as
being broken. Do the mpc8xx/intr0 test PASS on your board?
Daniel> void scc_uart_init_int(void){
Daniel> cyg_drv_interrupt_create(CYGNUM_HAL_INTERRUPT_CPM_SCC2,
Daniel> CYGARC_SIU_PRIORITY_HIGH, (cyg_addrword_t) &buffers,
Daniel> scc_uart_ISR, scc_uart_DSR, &serial_interrupt_handle,
Daniel> serial_interrupt);
Daniel> cyg_drv_interrupt_attach(serial_interrupt_handle);
Daniel> cyg_drv_interrupt_unmask(CYGNUM_HAL_INTERRUPT_CPM_SCC2); }
Also please verify that the CPM interrupt is unmasked properly (it
would be if the intr0 test PASSes).
Finally, you should try to enable assertions (enable
CYGDBG_USE_ASSERTS and CYGPKG_INFRA_DEBUG) to catch any unhandled
interrupts.
Jesper
next prev parent reply other threads:[~2000-10-18 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-18 0:42 Daniel Lind
2000-10-18 6:47 ` Jesper Skov [this message]
2000-10-19 4:17 ` Daniel Lind
2000-10-19 6:35 ` Jesper Skov
2000-10-20 2:19 ` Daniel Lind
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=otu2aa45yd.fsf@thinktwice.zoftcorp.dk \
--to=jskov@redhat.com \
--cc=daniel.lind@sth.frontec.se \
--cc=ecos-discuss@sourceware.cygnus.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).