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

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