On 8/28/05, Hemant Mohapatra <hemant.mohapatra@xxxxxxxxx> wrote: > On 8/27/05, Gaurav Dhiman <gaurav4lkg@xxxxxxxxx> wrote: > > > Are you sure of it that cli()/sti() disable the interrupts on all > > processors, i think it only disables the interrupts on local CPU. Well > > the cli() function is defined as follows in include/linux/interrupt.h > > Yup, my bad. kernel 2.6 and above do not allow global interrupt > disables. Thanks for pointing it out. what about the kernels before 2.6, were they allowing to disable interrupts on all CPU, if yes, which was the function for that, I just want to suty that, how do they do it. Were they using the mask register of APIC to disable and enable the interrupts on all CPUs ? regards, -Gaurav > > ./h > -- > Operating Systems and Computer Architecture Research - University of Cincinnati > http://www.ececs.uc.edu/~mohapth > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/