Module: xenomai-3 Branch: next Commit: 74ffe0a81116ca48a78e39ff81bfca846bddeb35 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=74ffe0a81116ca48a78e39ff81bfca846bddeb35
Author: Philippe Gerum <[email protected]> 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 b9efa05..6282cc4 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 [email protected] https://xenomai.org/mailman/listinfo/xenomai-git
