From: Blue Swirl <blauwirbel@gmail.com>
To: Artyom Tarasenko <atar4qemu@googlemail.com>
Cc: qemu-devel@nongnu.org, Artyom Tarasenko <atar4qemu@gmail.com>
Subject: [Qemu-devel] Re: [PATCH] [sparc32] mask all interrupts when MASTER_DISABLE is set
Date: Sun, 27 Jun 2010 20:22:50 +0000 [thread overview]
Message-ID: <AANLkTikvwFQn438BrVkTDIZ3TjNCvAz4lNHgcbrkEfsS@mail.gmail.com> (raw)
In-Reply-To: <1277144601-30098-1-git-send-email-atar4qemu@gmail.com>
Thanks, applied.
On Mon, Jun 21, 2010 at 6:23 PM, Artyom Tarasenko
<atar4qemu@googlemail.com> wrote:
> The MASTER_DISABLE bit (aka mask-all) masks all the interrupts.
>
> According to Sun-4M System Architecture
> "The level–15 interrupt sources [...] are maskable with the Interrupt Target
> Mask Register. While these interrupts are considered ’non–maskable’ within
> the SPARC IU, a mask capability is provided to allow the boot firmware
> to establish a basic environment before receiving any level–15 interrupts,
> which are non–maskable within SPARC. A mask–all bit is provided to allow
> disabling of all external interrupts during change of the CIT."
>
> Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
> ---
> hw/slavio_intctl.c | 9 ++++++---
> 1 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c
> index b76d3ac..8a38f67 100644
> --- a/hw/slavio_intctl.c
> +++ b/hw/slavio_intctl.c
> @@ -289,9 +289,12 @@ static void slavio_check_interrupts(SLAVIO_INTCTLState *s, int set_irqs)
> }
> }
>
> - /* Level 15 and CPU timer interrupts are not maskable */
> - pil_pending |= s->slaves[i].intreg_pending &
> - (CPU_IRQ_INT15_IN | CPU_IRQ_TIMER_IN);
> + /* Level 15 and CPU timer interrupts are only masked when
> + the MASTER_DISABLE bit is set */
> + if (!(s->intregm_disabled & MASTER_DISABLE)) {
> + pil_pending |= s->slaves[i].intreg_pending &
> + (CPU_IRQ_INT15_IN | CPU_IRQ_TIMER_IN);
> + }
>
> /* Add soft interrupts */
> pil_pending |= (s->slaves[i].intreg_pending & CPU_SOFTIRQ_MASK) >> 16;
> --
> 1.6.2.5
>
>
prev parent reply other threads:[~2010-06-27 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-21 18:23 [Qemu-devel] [PATCH] [sparc32] mask all interrupts when MASTER_DISABLE is set Artyom Tarasenko
2010-06-27 20:22 ` Blue Swirl [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=AANLkTikvwFQn438BrVkTDIZ3TjNCvAz4lNHgcbrkEfsS@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=atar4qemu@gmail.com \
--cc=atar4qemu@googlemail.com \
--cc=qemu-devel@nongnu.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).