From: Jan Kiszka <jan.kiszka@domain.hid>
To: adeos-main <adeos-main@gna.org>
Cc: Philippe Gerum <rpm@xenomai.org>
Subject: [Adeos-main] [PATCH] i386: forgotten hunk of domain violation patch
Date: Fri, 25 May 2007 07:59:18 +0200 [thread overview]
Message-ID: <46567B36.4000603@domain.hid> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 93 bytes --]
x86_64 has it correctly, i386 is yet lacking it. Please apply for the
next release.
Jan
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: fix-context-checks.patch --]
[-- Type: text/x-patch; name="fix-context-checks.patch", Size: 765 bytes --]
Index: linux-2.6.20-ipipe/arch/i386/kernel/ipipe.c
===================================================================
--- linux-2.6.20-ipipe.orig/arch/i386/kernel/ipipe.c
+++ linux-2.6.20-ipipe/arch/i386/kernel/ipipe.c
@@ -680,8 +680,13 @@ fastcall int __ipipe_handle_exception(st
/* Track the hw interrupt state before calling the Linux
* exception handler, replicating it into the virtual mask. */
- if (irqs_disabled_hw())
- local_irq_disable();
+ if (irqs_disabled_hw()) {
+ /* Do not trigger the alarm in ipipe_check_context() by using
+ * plain local_irq_disable(). */
+ __ipipe_stall_root();
+ trace_hardirqs_off();
+ barrier();
+ }
#ifdef CONFIG_KGDB
/* catch exception KGDB is interested in over non-root domains */
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next reply other threads:[~2007-05-25 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 5:59 Jan Kiszka [this message]
2007-05-27 8:46 ` [Adeos-main] [PATCH] i386: forgotten hunk of domain violation patch Philippe Gerum
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=46567B36.4000603@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=adeos-main@gna.org \
--cc=rpm@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.