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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Feb 19 19:12:45 2014 +0100

lib/cobalt: stop using deprecated sc_nucleus_current_info

Every Cobalt thread in user-space is backed by a POSIX-enabled
shadow. Use cobalt_thread_stat() instead of issuing the deprecated
sc_nucleus_current_info syscall for the base thread.

---

 lib/cobalt/assert_context.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/cobalt/assert_context.c b/lib/cobalt/assert_context.c
index 66d6010..1332bb2 100644
--- a/lib/cobalt/assert_context.c
+++ b/lib/cobalt/assert_context.c
@@ -30,17 +30,17 @@
 
 static void assert_nrt_inner(void)
 {
-       struct xnthread_info info;
+       struct cobalt_threadstat stat;
        int ret;
 
-       ret = XENOMAI_SYSCALL1(sc_nucleus_current_info, &info);
+       ret = __cobalt_thread_stat(0, &stat);
        if (ret) {
-               report_error("sc_nucleus_current_info failed: %s",
+               report_error("__cobalt_thread_stat() failed: %s",
                        strerror(-ret));
                return;
        }
 
-       if (info.state & XNTRAPSW)
+       if (stat.status & XNTRAPSW)
                pthread_kill(pthread_self(), SIGXCPU);
 }
 


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

Reply via email to