Module: xenomai-forge Branch: next Commit: 769c21c3becc756232dc9ab18b5881a80a7388e1 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=769c21c3becc756232dc9ab18b5881a80a7388e1
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Apr 7 15:39:11 2014 +0200 cobalt/x86: fixup for kernel v3.13+ --- kernel/cobalt/arch/x86/thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/cobalt/arch/x86/thread.c b/kernel/cobalt/arch/x86/thread.c index aa6dabf..24fc580 100644 --- a/kernel/cobalt/arch/x86/thread.c +++ b/kernel/cobalt/arch/x86/thread.c @@ -101,7 +101,11 @@ void xnarch_switch_to(struct xnthread *out, struct xnthread *in) clts(); next = in_tcb->core.host_task; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,13) + next->thread.fpu_counter = 0; +#else next->fpu_counter = 0; +#endif prev_mm = out_tcb->core.active_mm; next_mm = in_tcb->core.mm; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git