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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jul  7 17:05:16 2016 +0200

cobalt/syscalls: allow for handing over mode selection to syscall handlers

Specific system calls may benefit from dealing with the caller's
runtime mode by themselves, depending on internal information which
the generic syscall dispatcher does not have access to.

To this end, a new syscall mode called "handover" is
introduced. Syscalls bearing this mode bit are always entered from the
current calling domain. The syscall handler may return -ENOSYS to
trigger a switch to the converse domain until all domains have been
visited once, at which point the syscall fails with -ENOSYS
automatically.

---

 kernel/cobalt/posix/syscall.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index 0aeff28..25d21ea 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -737,7 +737,6 @@ restart:
                 * domain. This is a slow path, so proceed with any
                 * pending schedparam update on the fly.
                 */
-               switched = 0;
                if (thread)
                        xnthread_propagate_schedparam(thread);
        }


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

Reply via email to