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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jul  1 15:11:31 2009 +0200

nucleus: remove leftovers

xnarch_init_root_tcb() has moved to asm-*/bits/sched.h.

---

 include/asm-arm/bits/pod.h      |   21 ---------------------
 include/asm-blackfin/bits/pod.h |   13 -------------
 include/asm-powerpc/bits/pod.h  |   23 -----------------------
 include/asm-sim/bits/pod.h      |    7 -------
 include/asm-x86/bits/pod_32.h   |   13 -------------
 5 files changed, 0 insertions(+), 77 deletions(-)

diff --git a/include/asm-arm/bits/pod.h b/include/asm-arm/bits/pod.h
index 5a8f042..6c8971f 100644
--- a/include/asm-arm/bits/pod.h
+++ b/include/asm-arm/bits/pod.h
@@ -98,27 +98,6 @@ static inline void xnarch_switch_to(xnarchtcb_t *out_tcb, 
xnarchtcb_t *in_tcb)
        rthal_thread_switch(prev, out_tcb->tip, in_tcb->tip);
 }
 
-static inline void xnarch_init_root_tcb(xnarchtcb_t * tcb,
-                                       struct xnthread *thread,
-                                       const char *name)
-{
-       tcb->user_task = current;
-       tcb->active_task = NULL;
-       tcb->mm = current->mm;
-       tcb->active_mm = NULL;
-       tcb->tip = &tcb->ti;
-#ifdef CONFIG_XENO_HW_FPU
-       tcb->user_fpu_owner = NULL;
-       tcb->fpup = NULL;
-       tcb->is_root = 1;
-#endif /* CONFIG_XENO_HW_FPU */
-       tcb->entry = NULL;
-       tcb->cookie = NULL;
-       tcb->self = thread;
-       tcb->imask = 0;
-       tcb->name = name;
-}
-
 asmlinkage static void xnarch_thread_trampoline(xnarchtcb_t * tcb)
 {
        xnpod_welcome_thread(tcb->self, tcb->imask);
diff --git a/include/asm-blackfin/bits/pod.h b/include/asm-blackfin/bits/pod.h
index 83a404c..a8eecb4 100644
--- a/include/asm-blackfin/bits/pod.h
+++ b/include/asm-blackfin/bits/pod.h
@@ -69,19 +69,6 @@ static inline void xnarch_switch_to(xnarchtcb_t * out_tcb, 
xnarchtcb_t * in_tcb)
        rthal_thread_switch(out_tcb->tsp, in_tcb->tsp);
 }
 
-static inline void xnarch_init_root_tcb(xnarchtcb_t * tcb,
-                                       struct xnthread *thread,
-                                       const char *name)
-{
-       tcb->user_task = current;
-       tcb->tsp = &tcb->ts;
-       tcb->entry = NULL;
-       tcb->cookie = NULL;
-       tcb->self = thread;
-       tcb->imask = 0;
-       tcb->name = name;
-}
-
 asmlinkage static void xnarch_thread_trampoline(xnarchtcb_t * tcb)
 {
        xnpod_welcome_thread(tcb->self, tcb->imask);
diff --git a/include/asm-powerpc/bits/pod.h b/include/asm-powerpc/bits/pod.h
index 145fd4f..da44b8e 100644
--- a/include/asm-powerpc/bits/pod.h
+++ b/include/asm-powerpc/bits/pod.h
@@ -127,29 +127,6 @@ static inline void xnarch_switch_to(xnarchtcb_t *out_tcb,
        barrier();
 }
 
-static inline void xnarch_init_root_tcb(xnarchtcb_t *tcb,
-                                       struct xnthread *thread,
-                                       const char *name)
-{
-       tcb->user_task = current;
-       tcb->active_task = NULL;
-       tcb->tsp = &tcb->ts;
-       tcb->mm = current->mm;
-       tcb->active_mm = NULL;
-#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
-       tcb->tip = &tcb->ti;
-#endif
-#ifdef CONFIG_XENO_HW_FPU
-       tcb->user_fpu_owner = NULL;
-       tcb->fpup = NULL;
-#endif /* CONFIG_XENO_HW_FPU */
-       tcb->entry = NULL;
-       tcb->cookie = NULL;
-       tcb->self = thread;
-       tcb->imask = 0;
-       tcb->name = name;
-}
-
 asmlinkage static void xnarch_thread_trampoline(xnarchtcb_t * tcb)
 {
        xnpod_welcome_thread(tcb->self, tcb->imask);
diff --git a/include/asm-sim/bits/pod.h b/include/asm-sim/bits/pod.h
index 384627e..999c0e8 100644
--- a/include/asm-sim/bits/pod.h
+++ b/include/asm-sim/bits/pod.h
@@ -38,13 +38,6 @@ static inline void xnarch_switch_to (xnarchtcb_t *out_tcb,
     __mvm_breakable(mvm_switch_threads)(out_tcb->vmthread,in_tcb->vmthread);
 }
 
-static inline void xnarch_init_root_tcb (xnarchtcb_t *tcb,
-                                        struct xnthread *thread,
-                                        const char *name)
-{
-    tcb->vmthread = mvm_thread_self();
-}
-
 static inline void xnarch_init_thread (xnarchtcb_t *tcb,
                                       void (*entry)(void *),
                                       void *cookie,
diff --git a/include/asm-x86/bits/pod_32.h b/include/asm-x86/bits/pod_32.h
index fb6c507..6e79382 100644
--- a/include/asm-x86/bits/pod_32.h
+++ b/include/asm-x86/bits/pod_32.h
@@ -121,19 +121,6 @@ static inline void xnarch_switch_to(xnarchtcb_t * out_tcb, 
xnarchtcb_t * in_tcb)
        stts();
 }
 
-static inline void xnarch_init_root_tcb(xnarchtcb_t * tcb,
-                                       struct xnthread *thread,
-                                       const char *name)
-{
-       tcb->user_task = current;
-       tcb->active_task = NULL;
-       tcb->esp = 0;
-       tcb->espp = &tcb->esp;
-       tcb->eipp = &tcb->eip;
-       tcb->fpup = NULL;
-       tcb->is_root = 1;
-}
-
 asmlinkage static void xnarch_thread_redirect(struct xnthread *self,
                                              int imask,
                                              void (*entry) (void *),


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to