[discuss] Re: preempt_conditional_{sti,cli} use

Andi Kleen ak at suse.de
Tue May 9 16:22:36 CEST 2006


> 
> My point is that I think that you still have to be careful when exiting
> a trap routine with interrupts enabled and you have re-enabled preemptions.
> I THINK that you need to disable interrupts, before reenable-ing
> premptions before returning back to the entry.S code.

For exit you have to be cli'ed yes.

Just not for the duration of the exception handler. Of course if it's short
it won't matter.

-Andi




More information about the discuss mailing list