Module: xenomai-forge
Branch: next
Commit: 52b522ff73b7a3c722e8448049e490a5c89e68f7
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=52b522ff73b7a3c722e8448049e490a5c89e68f7

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..29079b7 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,13,0)
+       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

Reply via email to