linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch preempt and win4lin
@ 2003-07-09  9:43 Aurelien Jarno
  2003-07-09 22:00 ` Nicholas Wourms
  0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2003-07-09  9:43 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I am maintaining the Debian package containing the preemptible kernel 
from Robert Love. 

A user told me that win4lin stops working when the preemptible patch is
used. He sent me a patch (see below); I have tested it on my computer it
seems to work, however I don't understand exactly what it does. 

Could anybody can give me some comments on this patch and the possible
consequences it could generate?

Thanks
Aurelien


##
# This patch will apply to a 2.4.18 tree that has been patched with
# preempt-kernel-rml-2.4.18-5.patch
#
--- linux-2.4.18-orig/arch/i386/kernel/entry.S  Mon Feb 25 12:37:53 2002
++++ linux-2.4.18/arch/i386/kernel/entry.S       Wed Feb 27 07:16:58
2002
@@ -293,9 +293,8 @@
        jnz restore_all
        cmpl $0,need_resched(%ebx)
        jz restore_all
-       movl SYMBOL_NAME(irq_stat)+irq_stat_local_bh_count CPU_INDX,%ecx
-       addl SYMBOL_NAME(irq_stat)+irq_stat_local_irq_count
        CPU_INDX,%ecx
-       jnz restore_all
+       testl $IF_MASK,EFLAGS(%esp)     # Ints off (execption path) ?
+       jz restore_all
        incl preempt_count(%ebx)
        sti
        call SYMBOL_NAME(preempt_schedule)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Patch preempt and win4lin
  2003-07-09  9:43 Patch preempt and win4lin Aurelien Jarno
@ 2003-07-09 22:00 ` Nicholas Wourms
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas Wourms @ 2003-07-09 22:00 UTC (permalink / raw)
  To: linux-kernel

Aurelien Jarno wrote:

> Hi all,
> 
> I am maintaining the Debian package containing the preemptible kernel 
> from Robert Love. 
> 
> A user told me that win4lin stops working when the preemptible patch is
> used. He sent me a patch (see below); I have tested it on my computer it
> seems to work, however I don't understand exactly what it does. 
> 
> Could anybody can give me some comments on this patch and the possible
> consequences it could generate?

You might want to check with Marc-Christian @WOLK, since he said he 
already got a patch awile back from the win4lin people to fix this.

Cheers,
Nicholas



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-09 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-09  9:43 Patch preempt and win4lin Aurelien Jarno
2003-07-09 22:00 ` Nicholas Wourms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).