linux-mips
[Top] [All Lists]

Re: how to disable interrupt in application?

To: "Kevin D. Kissell" <KevinK@mips.com>
Subject: Re: how to disable interrupt in application?
From: zhuzhenhua <zzh.hust@gmail.com>
Date: Wed, 31 May 2006 15:37:04 +0800
Cc: "Bin Chen" <binary.chen@gmail.com>, linux-mips <linux-mips@linux-mips.org>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KTvnLEpzBkGsePsh6W6/xPxSC2ryphw/2eOxc0pv53ueJQaqI4vB72N3fQSeDgnVOHKL79KEW+HmcKchfTEU49E0NI1//+htAGCbqJDJQsE3q2dPQMArj+tENYoWd88xc2TlyiFmaGdCbDhIZIZ64nRDmyhNFR65NcY2wppwwOQ=
In-reply-to: <002a01c6847f$98409480$0602a8c0@Ulysses>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <50c9a2250605301733t788c16f9k739c17e4a6a4efee@mail.gmail.com> <5800c1cc0605302311p2d1f024bm96ac6e08cda1bc2f@mail.gmail.com> <002a01c6847f$98409480$0602a8c0@Ulysses>
Sender: linux-mips-bounce@linux-mips.org
On 5/31/06, Kevin D. Kissell <KevinK@mips.com> wrote:
sigprocmask manages signals, which are user-mode abstractions
of exceptions.  It does not affect hardware interrupt behavior.
If by "uninterruptable", ZhuZhenHua means that the decoder
process will not get switched out in favor of another user-mode
process, then getpriority()/setpriority() provide some control
that may be sufficient.  If what is desired is that hardware interrupts
are actually masked during some critical sequence, the critical
sequence must be executed with kenel privilege - you need to
look at putting the critical sequence into a driver or other loadable
kernel module that can be invoked by the application code.

            Regards,

            Kevin K.

----- Original Message -----
From: "Bin Chen" <binary.chen@gmail.com>
To: "zhuzhenhua" <zzh.hust@gmail.com>
Cc: "linux-mips" <linux-mips@linux-mips.org>
Sent: Wednesday, May 31, 2006 8:11 AM
Subject: Re: how to disable interrupt in application?


> man sigprocmask
>
> On 5/31/06, zhuzhenhua <zzh.hust@gmail.com> wrote:
> > our project have a video decoder code run as application. there is
> > some short code want to be run uninterruptable. is there anyway to do
> > it?
> > thanks for any hints
> > Best Regards
> >
> >
> > zhuzhenhua
> >
> >
>
>


actually i don't want the pipelining be interrupted while run our user
define instructions.

<Prev in Thread] Current Thread [Next in Thread>