Re: [PATCH 2.6.10-mm2 Resend] Fix preemption race [1/3] (Core/i386)

From: Andrew Morton
Date: Wed Jan 12 2005 - 19:10:18 EST


tglx@xxxxxxxxxxxxx wrote:
>
> --- 2.6.10-mm2/arch/i386/kernel/entry.S (revision 148)
> +++ 2.6.10-mm2/arch/i386/kernel/entry.S (working copy)
> @@ -189,6 +189,7 @@
>
> #ifdef CONFIG_PREEMPT
> ENTRY(resume_kernel)
> + cli
> cmpl $0,TI_preempt_count(%ebp) # non-zero preempt_count ?
> jnz restore_all
> need_resched:
> @@ -197,10 +198,7 @@
> jz restore_all
> testl $IF_MASK,EFLAGS(%esp) # interrupts off (exception path) ?
> jz restore_all
> - sti
> - call preempt_schedule
> - cli
> - movl $0,TI_preempt_count(%ebp)
> + call preempt_schedule_irq();

whee, who needs a C compiler anyway? Did that actually assemble?

I'll fix that one up ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/