Hi,

The macro local_irq_save(x) is defined as the following three instructions:

1: pushfl
2: popl x
3: cli

It should be possible that a interrupt happens before instruction 3
but after instruction 1.  If the interrupt handler change the EFLAGS
register, the local_irq_save(x) will save the old value to x.  How
this problem is avoided in the kernel?

Regards,
Wenhua

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to