On Wed, 09 Feb 2005 17:08:23 -0500, 
Eric Desjardins <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to