Module: xenomai-3
Branch: next
Commit: 50a49b55e854be62411871e5950401f0f7261a8b
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=50a49b55e854be62411871e5950401f0f7261a8b

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Oct 16 14:22:01 2014 +0200

cobalt/arm: disable 32bit syscall emulation

---

 kernel/cobalt/arch/arm/Kconfig   |    3 +++
 kernel/cobalt/arch/arm/syscall.c |    5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/cobalt/arch/arm/Kconfig b/kernel/cobalt/arch/arm/Kconfig
index 03826de..dc6485d 100644
--- a/kernel/cobalt/arch/arm/Kconfig
+++ b/kernel/cobalt/arch/arm/Kconfig
@@ -32,6 +32,9 @@ config XENO_ARCH_WANT_TIP
 config XENO_ARCH_FPU
        def_bool VFP
 
+config XENO_ARCH_SYS3264
+        def_bool n
+
 config XENO_ARCH_OUTOFLINE_XNLOCK
        bool
        default y
diff --git a/kernel/cobalt/arch/arm/syscall.c b/kernel/cobalt/arch/arm/syscall.c
index 8e9c801..735208b 100644
--- a/kernel/cobalt/arch/arm/syscall.c
+++ b/kernel/cobalt/arch/arm/syscall.c
@@ -49,8 +49,5 @@ int xnarch_local_syscall(unsigned long a1, unsigned long a2,
                break;
        }
 
-       if (__xn_copy_to_user((void *)a2, &info, sizeof(info)))
-               return -EFAULT;
-
-       return 0;
+       return __xn_safe_copy_to_user((void *)a2, &info, sizeof(info));
 }


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

Reply via email to