Module: xenomai-3 Branch: master Commit: 586b20042dcee4df5bbd78382f40b8732591460a URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=586b20042dcee4df5bbd78382f40b8732591460a
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Jul 18 10:39:52 2015 +0200 copperplate/threadobj: inline window accessor (cobalt) --- include/copperplate/threadobj.h | 8 ++++++-- lib/copperplate/threadobj.c | 6 ------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/include/copperplate/threadobj.h b/include/copperplate/threadobj.h index 2ec0289..38835f4 100644 --- a/include/copperplate/threadobj.h +++ b/include/copperplate/threadobj.h @@ -84,8 +84,12 @@ void threadobj_save_timeout(struct threadobj_corespec *corespec, #ifdef CONFIG_XENO_PSHARED -struct xnthread_user_window * -threadobj_get_window(struct threadobj_corespec *corespec); +static inline struct xnthread_user_window * +threadobj_get_window(struct threadobj_corespec *corespec) +{ + extern void *cobalt_umm_shared; + return cobalt_umm_shared + corespec->shrd.u_winoff; +} #else /* !CONFIG_XENO_PSHARED */ diff --git a/lib/copperplate/threadobj.c b/lib/copperplate/threadobj.c index 335c9f8..47b3762 100644 --- a/lib/copperplate/threadobj.c +++ b/lib/copperplate/threadobj.c @@ -259,12 +259,6 @@ static inline int threadobj_setup_corespec(struct threadobj *thobj) return 0; } -struct xnthread_user_window * -threadobj_get_window(struct threadobj_corespec *corespec) -{ - return cobalt_umm_shared + corespec->shrd.u_winoff; -} - #else /* !CONFIG_XENO_PSHARED */ static inline int threadobj_setup_corespec(struct threadobj *thobj) _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git