porting to ia64
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;
}
Thanks for any help I can get...
Signature · 1 line
Eric Desjardins <[email protected]>
Quoted 1 line
return (flags &
X86_EFLAGS_IF)
I suspect that "irqs_disabled()" does what you want (and is portable between x86, ia64 and others).
-Tony
Quoted 11 lines · Eric Desjardins
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;
Quoted 5 lines
__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.