Re: kernel preemption while returning from interrupts

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

 



Dear Gaurav.....

I am not an expert on this issue, but allow me to share my idea...

> 186         testl $IF_MASK,EFLAGS(%esp)     # interrupts off
> (exception path) ? 

you mean this check, right? Well IMHO, "cli" certainly masks interrupts, 
but line 186 above checks whether IF (Interrupt Flag) of EFLAGS saved 
on kernel stack is disabled. Maybe on exception path, IF flag is 
cleared first and the handler is called? CMIIW too

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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