public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: linux-ia64@vger.kernel.org
Subject: Re: porting to ia64
Date: Wed, 09 Feb 2005 22:32:28 +0000	[thread overview]
Message-ID: <2307.1107988348@ocs3.ocs.com.au> (raw)
In-Reply-To: <1107986903.23187.23.camel@oshawa.rd.discreet.qc.ca>

On Wed, 09 Feb 2005 17:08:23 -0500, 
Eric Desjardins <eric.desjardins@discreet.com> wrote:
>Hi,
>
>I'm not to familiar with kernel code but I'm trying to port a kernel
>driver from x86 to ia64.
>
>I was just wondering how should I translate that:
>
>static int interrupts_blocked()
>{
>   unsigned long flags = 0;
>                                                                                                        
>   __save_flags(flags);
>  
>   return (flags & X86_EFLAGS_IF) =
>0;                                                                                                 
>}

if (irqs_disabled()) { ... } works on all platforms.  Your driver does
not need to define its own function.


      parent reply	other threads:[~2005-02-09 22:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 22:08 porting to ia64 Eric Desjardins
2005-02-09 22:29 ` Luck, Tony
2005-02-09 22:32 ` Keith Owens [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=2307.1107988348@ocs3.ocs.com.au \
    --to=kaos@ocs.com.au \
    --cc=linux-ia64@vger.kernel.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