[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Question on local_irq_save/local_irq_retore
Hi, I have some confusion on local_irq_save() and local_irq_restore(). From the definitions, you can see that local_irq_save() calls local_irq_disable(). But why there is no local_irq_enable() in local_irq_restore? #define local_irq_save(x)
({ local_save_flags(x);
local_irq_disable(); })
#define local_irq_restore(x)
({ BUILD_BUG_ON(sizeof(x) != sizeof(long));
asm volatile ( "push" __OS " %0 ; popf" __OS
: : "g" (x) : "memory", "cc" ); }) Xinxin _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |