From: Ralf Baechle <ralf@linux-mips.org>
To: "Mark.Zhan" <rongkai.zhan@windriver.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/2] Wind River 4KC PPMC Eval Board Support
Date: Wed, 10 May 2006 16:32:16 +0100 [thread overview]
Message-ID: <20060510153215.GB11961@linux-mips.org> (raw)
In-Reply-To: <446152CC.6020904@windriver.com>
On Wed, May 10, 2006 at 10:41:16AM +0800, Mark.Zhan wrote:
> After looking into the changeset ac58afdfac792c0583af30dbd9eae53e24c78b,
> I find what I want to do has been done by you:-)
I don't have this changeset in my tree; I assume you're refering to the
patch titled "[MIPS] Rewrite all the assembler interrupt handlers to C".
> For those MIPS32 boards which only use IRQ_CPU, I think, we can provide
> a default plat_irq_dispatch() implemention, maybe like this:
>
> asmlinkage plat_irq_dispatch(struct pt_regs *regs)
> {
> unsigned int pending = read_c0_status() & read_c0_cause();
> int irq;
>
> irq = ffs(pending >> 8) - 1;
> return do_IRQ(irq, regs);
> }
>
> I this it will clean up more codes......
There are only few such extremly simple platforms in the tree. The purpose
of me rewriting all the handlers to assembler was that many of the handlers
has bugs that would not exist in a high level language and much of the code
was not scheduled very well - something which gcc does pretty well these
days.
Ralf
next prev parent reply other threads:[~2006-05-10 15:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-06 9:04 [PATCH 1/2] Wind River 4KC PPMC Eval Board Support Mark.Zhan
2006-05-09 16:41 ` Ralf Baechle
2006-05-10 2:41 ` Mark.Zhan
2006-05-10 15:32 ` Ralf Baechle [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-05 15:42 Zhan, Rongkai
2006-05-05 15:42 ` Zhan, Rongkai
2006-05-05 16:07 ` Ralf Baechle
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=20060510153215.GB11961@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=rongkai.zhan@windriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.