Module: xenomai-jki
Branch: for-upstream
Commit: 5597470d84584846875e8a35309e6302c768addf
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=5597470d84584846875e8a35309e6302c768addf

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Jun 28 22:10:07 2011 +0200

nucleus: Allow drop_u_mode syscall from any context

xnshadow_sys_drop_u_mode already checks if the caller is a shadow. It
does that without issuing a warning message if the check fails - in
contrast to do_hisyscall_event. As user space may call this cleanup
service even for non-shadow threads (e.g. after shadow creation failed),
we better silence this warning.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/nucleus/shadow.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index 9f82fa8..bdccc2d 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -2076,8 +2076,7 @@ static xnsysent_t __systab[] = {
        [__xn_sys_current] = {&xnshadow_sys_current, __xn_exec_any},
        [__xn_sys_current_info] =
                {&xnshadow_sys_current_info, __xn_exec_shadow},
-       [__xn_sys_drop_u_mode] =
-               {&xnshadow_sys_drop_u_mode, __xn_exec_shadow},
+       [__xn_sys_drop_u_mode] = {&xnshadow_sys_drop_u_mode, __xn_exec_any},
        [__xn_sys_mayday] = {&xnshadow_sys_mayday, 
__xn_exec_any|__xn_exec_norestart},
 };
 


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

Reply via email to