From: "John Zhou" <zjzhou@newrocktech.com>
To: "'Chris Simmonds'" <chris@2net.co.uk>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: RE: IRQ0 handler
Date: Thu, 4 Sep 2003 15:55:52 +0800 [thread overview]
Message-ID: <000b01c372b9$f7071aa0$9702a8c0@newrock2> (raw)
In-Reply-To: <3F54B7C2.9060409@2net.co.uk>
Have you config SIEXR, SIU external interrupt comtrol register, which edge detect mode you used ? Low assertion or High to low change to generate an interrupt?
John Zhou
-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Chris
Simmonds
Sent: Tuesday, September 02, 2003 11:31 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: IRQ0 handler
Hi,
Can anybody tell me how to install a handler for irq0 on an 8xx
platform? Doing the obvious (request_8xxirq (SIU_IRQ0 ...)) doesn't seem
to work. It seems that I need to modify head_8xx.S so that the excption
handler for 0x100 is do_IRQ instead of UnKnownException. I tried the
patch below, but now I get a Software Emulation trap (0x1000). Any help
gratefully accepted.
Chris.
/* System reset */
#ifdef CONFIG_SMP /* MVME/MTX start the secondary here */
STD_EXCEPTION(0x100, Reset, __secondary_start_psurge)
#else
/****
Replace norrmal NMI handler with do_IRQ
STD_EXCEPTION(0x100, Reset, UnknownException)
****/
NMI_Interrupt:
EXCEPTION_PROLOG;
addi r3,r1,STACK_FRAME_OVERHEAD
li r20,MSR_KERNEL
li r4,0
bl transfer_to_handler
.long do_IRQ;
.long ret_from_intercept
#endif
--
Chris Simmonds 2net Limited
chris@2net.co.uk http://www.2net.co.uk/
Tel: +44 (0)1962 869003 Fax: +44 (0)870 056 7556
"If it's not connected, it's not effective"(tm)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2003-09-04 7:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-02 15:31 IRQ0 handler Chris Simmonds
2003-09-04 7:55 ` John Zhou [this message]
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='000b01c372b9$f7071aa0$9702a8c0@newrock2' \
--to=zjzhou@newrocktech.com \
--cc=chris@2net.co.uk \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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).