diff options
-rw-r--r-- | arch/i386/kernel/irq.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c index 248e922ee13a..49ce4c31b713 100644 --- a/arch/i386/kernel/irq.c +++ b/arch/i386/kernel/irq.c | |||
@@ -95,6 +95,14 @@ fastcall unsigned int do_IRQ(struct pt_regs *regs) | |||
95 | irqctx->tinfo.task = curctx->tinfo.task; | 95 | irqctx->tinfo.task = curctx->tinfo.task; |
96 | irqctx->tinfo.previous_esp = current_stack_pointer; | 96 | irqctx->tinfo.previous_esp = current_stack_pointer; |
97 | 97 | ||
98 | /* | ||
99 | * Copy the softirq bits in preempt_count so that the | ||
100 | * softirq checks work in the hardirq context. | ||
101 | */ | ||
102 | irqctx->tinfo.preempt_count = | ||
103 | irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK | | ||
104 | curctx->tinfo.preempt_count & SOFTIRQ_MASK; | ||
105 | |||
98 | asm volatile( | 106 | asm volatile( |
99 | " xchgl %%ebx,%%esp \n" | 107 | " xchgl %%ebx,%%esp \n" |
100 | " call __do_IRQ \n" | 108 | " call __do_IRQ \n" |