>> 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