Re: porting to ia64

From: Keith Owens <kaos_at_ocs.com.au>
Date: 2005-02-10 09:32:28
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Feb 9 17:32:58 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:35 EST