From: Aurelien Jarno <aurelien@aurel32.net>
To: linux-kernel@vger.kernel.org
Subject: Patch preempt and win4lin
Date: Wed, 9 Jul 2003 11:43:00 +0200 [thread overview]
Message-ID: <20030709094300.GA21693@pc.aurel32> (raw)
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)
next reply other threads:[~2003-07-09 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 9:43 Aurelien Jarno [this message]
2003-07-09 22:00 ` Patch preempt and win4lin Nicholas Wourms
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030709094300.GA21693@pc.aurel32 \
--to=aurelien@aurel32.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).