synchronization problem on local_irq_save(x)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux