diff options
author | Richard Braun <rbraun@sceen.net> | 2013-02-28 22:15:12 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-02-28 22:15:12 +0100 |
commit | c2a196656539e0ccf41e06c87348124f62e66eb7 (patch) | |
tree | 39357c1f1f0381d3e869bb959dd54ead7dcf692f /kern/panic.c | |
parent | b2b453536774702167dc9ec242830624c42cf69b (diff) |
x86/trap: selectively disable preemption
Scheduling while interrupts are disabled is allowed, since the interrupt state
is a per-thread property that is restored on context switch. But some traps
(mostly device interrupts) must complete without scheduling to avoid extreme
latencies. Annotate trap handlers with a flag that controls whether preemption
is disabled while the handler is running.
Diffstat (limited to 'kern/panic.c')
0 files changed, 0 insertions, 0 deletions