Hi Thomas, Thank you for your quick reply. who does the processor switch ? Is it done by hardware or by kernel ? Again, if the interrupt is generated by "int" instruction by a user process, then how it is handled ? Thanking you, Roushan On 11/30/05, Thomas Petazzoni <thomas.petazzoni@xxxxxxxx> wrote: > Hi, > > Roushan Ali wrote: > > > "How the check for authirized source of an interrupt is done in > > linux ? If it is done by comparing the CPL with the DPL of IDT or > > GDT , then if a hardware interrupt comes while the CPU is executing a > > process in user mode(CPL = 3), so how does the CPU decide whether to > > handle the interrupt or not ?" > > The processor switches to the priviledge level needed by the interrupt > handler (generally priviledge 0), and executes the interrupt handler in > that priviledge level. > > Sincerly, > > Thomas > -- > Thomas Petazzoni > thomas.petazzoni@xxxxxxxx > -- Md. Roushan Ali Verismo Networks Pvt. Ltd. Email: roushan1981@xxxxxxxxxxx Mobile : +919886360098 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/