Module: xenomai-gch
Branch: for-forge
Commit: 46a464f28ce976fab5c88671cf821925cbacfdae
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=46a464f28ce976fab5c88671cf821925cbacfdae

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

cobalt/arm: set is_root members in TCB

---

 .../cobalt/arch/arm/include/asm/xenomai/thread.h   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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