Module: xenomai-forge
Branch: master
Commit: 1054b2c0befd342df25f2e3114702fdcc01b1f7f
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=1054b2c0befd342df25f2e3114702fdcc01b1f7f

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri May 16 17:10:08 2014 +0200

cobalt/rtdm: fix mode bits for secondary-only syscalls

Now that open(), socket() and close() have become secondary-only
services, fix up the mode bits for the respective handlers, so that
callers are automatically switched to the proper execution mode.

---

 kernel/cobalt/rtdm/syscall.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/rtdm/syscall.c b/kernel/cobalt/rtdm/syscall.c
index 286f047..b4f34be 100644
--- a/kernel/cobalt/rtdm/syscall.c
+++ b/kernel/cobalt/rtdm/syscall.c
@@ -115,9 +115,9 @@ static void rtdm_process_detach(void *arg)
 }
 
 static struct xnsyscall rtdm_syscalls[] = {
-       SKINCALL_DEF(sc_rtdm_open, sys_rtdm_open, probing),
-       SKINCALL_DEF(sc_rtdm_socket, sys_rtdm_socket, probing),
-       SKINCALL_DEF(sc_rtdm_close, sys_rtdm_close, probing),
+       SKINCALL_DEF(sc_rtdm_open, sys_rtdm_open, lostage),
+       SKINCALL_DEF(sc_rtdm_socket, sys_rtdm_socket, lostage),
+       SKINCALL_DEF(sc_rtdm_close, sys_rtdm_close, lostage),
        SKINCALL_DEF(sc_rtdm_ioctl, sys_rtdm_ioctl, probing),
        SKINCALL_DEF(sc_rtdm_read, sys_rtdm_read, probing),
        SKINCALL_DEF(sc_rtdm_write, sys_rtdm_write, probing),


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

Reply via email to