Module: xenomai-3
Branch: next
Commit: 79870655d9be4cdefdc86be4026a7791bcef6f52

Author: Philippe Gerum <>
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


 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)

Xenomai-git mailing list

Reply via email to