From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: adeos-main <adeos-main@gna.org>
Subject: [Adeos-main] x86: Fix-up for 2.6.26.5+
Date: Mon, 20 Oct 2008 11:27:48 +0200 [thread overview]
Message-ID: <48FC4F14.5020903@domain.hid> (raw)
Philippe,
ipipe-2.0-15 does not apply to 2.6.26.5 and later. Hunk below might be
non-trivial to resolve for normal users, so please merge soon
(specifically into Xenomai):
Index: linux-2.6.26-xeno_64/arch/x86/kernel/traps_64.c
===================================================================
--- linux-2.6.26-xeno_64.orig/arch/x86/kernel/traps_64.c
+++ linux-2.6.26-xeno_64/arch/x86/kernel/traps_64.c
@@ -1140,17 +1148,20 @@ asmlinkage void math_state_restore(void)
local_irq_disable();
}
+ local_irq_save_hw_cond(flags);
clts(); /* Allow maths ops (or we recurse) */
/*
* Paranoid restore. send a SIGSEGV if we fail to restore the state.
*/
if (unlikely(restore_fpu_checking(&me->thread.xstate->fxsave))) {
stts();
+ local_irq_restore_hw_cond(flags);
force_sig(SIGSEGV, me);
return;
}
task_thread_info(me)->status |= TS_USEDFPU;
me->fpu_counter++;
+ local_irq_restore_hw_cond(flags);
}
EXPORT_SYMBOL_GPL(math_state_restore);
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
reply other threads:[~2008-10-20 9:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=48FC4F14.5020903@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.