From: Frank Haverkamp <f.haverkamp@web.de>
To: linuxppc-embedded@lists.linuxppc.org
Subject: How many Interrupts at the same time?
Date: Mon, 07 Jan 2002 21:04:17 +0100 [thread overview]
Message-ID: <3C39FF41.87AD961A@web.de> (raw)
Hi,
we have a custom made 403 based board with up to 128 interrupts which
may occur simultaniously. After reading the interrupt handling code, we
came to the
conclusion that when too many interrupts are stacked, the kernel stack
will overflow.
When the first interrupt is handled the kernel leaves do_IRQ and returns
to the assembly code
in entry.S where in do_soft_irq() the interrupts are reenabled due to
issuing sti(). When
EE in the MSR is enabled the system will execute the next exception and
store another sizeof
(struct pt_regs) bytes on the stack plus some additional data
(stackframe, link reg., etc.).
This sums up to 184 bytes each. This leaves room for 30-40 interrupts
until we will get an
overflow. But we need in worst case space for 128 interrupts.
Is there a mistake in our analysis? Do other people have the same
problem and probably already
a solution? What options do we have?
Frank Haverkamp
& Joern Engel
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2002-01-07 20:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-07 20:04 Frank Haverkamp [this message]
2002-01-07 19:15 ` How many Interrupts at the same time? mod+linuxppc-embedded
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=3C39FF41.87AD961A@web.de \
--to=f.haverkamp@web.de \
--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).