Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30135
b: refs/heads/master
c: a5d157e
h: refs/heads/master
i:
  30133: 62599fb
  30131: fe9a691
  30127: 38ff5db
v: v3
  • Loading branch information
Bj�rn Steinbrink authored and Linus Torvalds committed Jun 25, 2006
1 parent 25602f3 commit 52643c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d77062b1402aef5b26e1d3776991126e8026bde
refs/heads/master: a5d157e0675ac11188a8d429a062b1938bb2d353
8 changes: 8 additions & 0 deletions trunk/arch/i386/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ fastcall unsigned int do_IRQ(struct pt_regs *regs)
irqctx->tinfo.task = curctx->tinfo.task;
irqctx->tinfo.previous_esp = current_stack_pointer;

/*
* Copy the softirq bits in preempt_count so that the
* softirq checks work in the hardirq context.
*/
irqctx->tinfo.preempt_count =
irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK |
curctx->tinfo.preempt_count & SOFTIRQ_MASK;

asm volatile(
" xchgl %%ebx,%%esp \n"
" call __do_IRQ \n"
Expand Down

0 comments on commit 52643c6

Please sign in to comment.