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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Oct  8 22:28:23 2013 +0200

cobalt/arm: set is_root members in TCB

---

 kernel/cobalt/arch/arm/include/asm/xenomai/thread.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h 
b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
index 5ec627c..d12a050 100644
--- a/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
+++ b/kernel/cobalt/arch/arm/include/asm/xenomai/thread.h
@@ -97,11 +97,13 @@ int xnarch_escalate(void);
 
 static inline void xnarch_init_root_tcb(struct xnarchtcb *tcb)
 {
+       tcb->is_root = 1;
        tcb->fpup = NULL;
 }
 
 static inline void xnarch_init_shadow_tcb(struct xnarchtcb *tcb)
 {
+       tcb->is_root = 0;
        tcb->fpup = (struct arm_fpustate *)
                &task_thread_info(tcb->core.host_task)->used_cp[0];
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to